title: Is it possible to introduce Automatic Reference Counting (ARC) to C++?
body: <p>Objective C has introduced a technology called ARC to free the developer from the burden of memory management. It sounds great, I think C++ developers would be very happy if g++ also has this feature.</p>
  
  <blockquote>
    <p>ARC allows you to put the burden of memory management on the (Apple LLVM 3.0) compiler, and never think about retain, release and autorelease ever again</p>
  </blockquote>
  
  <p>So, if LLVM3.0 can do that, I think g++ also can free C++ developers from the tough jobs of memory management, right?</p>
  
  <p>Is there any difficulties to introduce ARC to C++?</p>
  
  <p>What I  mean is: If we don't use smart pointers, we just use <code>new</code>/<code>new[]</code>, is it possible for a compiler to do something for us to prevent memory leaks? For example, change the new to a smart pointer automatically?</p>