After reading Jossutis\' explanation on auto_ptr from his STL book I\'ve got a strong impression that whatever task I would try to use it in I\'d 100% fail becuase of one of
Clearly, auto_ptr
looses against unique_ptr
.
Now, in a 'strict C++03 without boost' world, I use auto_ptr
quite often, most notably :
std::auto_ptr
in the return type explicits that the object must be deletedrelease()
only if std::map<>::insert
returns that insertion succeededconst std::auto_ptr
to make it clear that the message will be destroyed no matter what.