upvote
Smart pointers existed long before C++11. std::auto_ptr was a mistake, but it wasn't the only option
reply