A C++ template class that provides a limited garbage collection facility for pointers, by allowing pointers to have the elements they point to automatically destroyed when the auto_ptr object is itself destroyed.
I have class foo that contains a std::auto_ptr member that I would like to copy construct but this …
c++ smart-pointers auto-ptr