std::auto_ptr
is broken in VC++ 8 (which is what we use at work). My main gripe with it is that it allows auto_ptr
, which of cour
Use a unique_ptr. I think these were introduced to be a better auto_ptr.
http://www.boost.org/doc/libs/1_35_0/doc/html/interprocess/interprocess_smart_ptr.html#interprocess.interprocess_smart_ptr.unique_ptr
In fact, I'm led to believe auto_ptr may be deprecated in favour of it:
http://objectmix.com/c/113487-std-auto_ptr-deprecated.html