This question already has an answer here:
- std::auto_ptr to std::unique_ptr 4 answers
Trying out -std=c++11
with the g++
compiler, I got lots of
warning: ‘auto_ptr’ is deprecated (declared at
/usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
What should I use instead of auto_ptr
? Please give an informative link or a complete answer.
Aucun commentaire:
Enregistrer un commentaire