mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 13:27:29 +02:00
Use auto_ptr only when it is provided by the standard library. Improves compatibility with C++17.
This commit is contained in:
@ -27,10 +27,12 @@ int main()
|
|||||||
delete p;
|
delete p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined( BOOST_NO_AUTO_PTR )
|
||||||
{
|
{
|
||||||
std::auto_ptr< X > p( new X );
|
std::auto_ptr< X > p( new X );
|
||||||
BOOST_TEST( get_pointer( p ) == p.get() );
|
BOOST_TEST( get_pointer( p ) == p.get() );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined( BOOST_NO_CXX11_SMART_PTR )
|
#if !defined( BOOST_NO_CXX11_SMART_PTR )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user