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
In simple scenarios when you need to temporarily control a heap-allocated object auto_ptr
can be used without problems. For example if you need to conditionally create an object that will be used only within one function you can't allocate it on stack and auto_ptr
lets you not care of the object lifetime should an exception occur.