[Bug libstdc++/55866] [4.8 Regression] #include <auto_ptr.h> in C++11 mode

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 3 16:55:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55866

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-03 16:55:04 UTC ---
It's an error in the package and only worked "by accident" because
$PREFIX/include/c++/4.x.y/backward is in the include path, to allow <strstream>
to be found.

The only supported way to use std::auto_ptr is #include <memory>



More information about the Gcc-bugs mailing list