Error : ‘template<class> class std::auto_ptr’ is deprecated

Viewed 10180

I'm using scons and ubuntu. When i when i make some program in using 'scons', there happen error like,

src/db/DBTextLoader.cc:296:3: error: ‘template class std::auto_ptr’ is deprecated [-Werror=deprecated-declarations]

/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here template class auto_ptr;

and this is my command;

$ ./configuer

$ source something.sh

$ scons

Actually, I don't have any idea. I'm already searching this site and google. But I didn't find solution.

this is my g++ version (and c++ also was same version.)

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

have any idea? Thank you.

1 Answers
Related