Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But has been in Boost for something like 15 years and a version was in TR1. In fact, the motivation for shared_ptr is worth reading: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n145...


It's worth noting, however, that unique_ptr was introduced in C++11 because it relies on move semantics, which were not introduced until then. auto_ptr is not quite the same. See http://www.drdobbs.com/cpp/c11-uniqueptr/240002708




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: