Le 13/01/2015 13:52, Vincent van Ravesteijn a écrit :
I googled it for you: ;)
"Note: This class template is deprecated as of C++11. unique_ptr is a
new facility with a similar functionality, but with improved security
(no fake copy assignments), added features (deleters) and support for
arrays. See unique_ptr for additional information."
(http://www.cplusplus.com/reference/memory/auto_ptr/)
(http://www.cplusplus.com/reference/memory/unique_ptr/)
Yes, I saw that already, but I then noticed that it was subtly different
enough to be a pain. Since I do not have a particular fetish about using
brand new STL constructs, I was half hoping that some c++11 believer
would step up to prove how easy and natural it was :)
JMarc