mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 12:27:42 +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;
|
||||
}
|
||||
|
||||
#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 )
|
||||
|
||||
|
Reference in New Issue
Block a user