Use auto_ptr only when it is provided by the standard library. Improves compatibility with C++17.

This commit is contained in:
Andrey Semashev
2016-11-06 20:00:47 +03:00
parent 9953994761
commit b7f49c9c78

View File

@ -27,10 +27,12 @@ int main()
delete p;
}
#if !defined( BOOST_NO_AUTO_PTR )
{
std::auto_ptr< X > p( new X );
BOOST_TEST( get_pointer( p ) == p.get() );
}
#endif
#if !defined( BOOST_NO_CXX11_SMART_PTR )