On 18/05/2012 4:06 PM, Tom Tromey wrote: >>>>>> "Paul" ==<Paul_Koning@Dell.com> writes: >>>>>> > Tom> We'd use RAII to ensure that refcounts were automatically managed > Tom> by the C++ compiler. > C++11 (that is g++ 4.3 and later) offers an std::shared_pointer; non-intrusive (the reference is not in the object being pointed to). Regards, a.