samedi 25 avril 2015

how to resolve g++ warning with -std=c++11: ‘auto_ptr’ is deprecated [duplicate]

This question already has an answer here:

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