Remove uses of BOOST_NO_CXX11_NULLPTR

This commit is contained in:
Peter Dimov
2024-09-24 19:05:48 +03:00
parent bd0419c290
commit 569b07b91c
14 changed files with 45 additions and 189 deletions
+1 -9
View File
@@ -52,17 +52,13 @@ static Z z;
static boost::shared_ptr<X> p1;
static boost::weak_ptr<X> p2;
#if !defined( BOOST_NO_CXX11_NULLPTR )
static boost::shared_ptr<X> p3( nullptr );
#endif
static boost::shared_ptr<X> p3( nullptr );
Z::Z()
{
p1.reset( new X );
p2 = p1;
#if !defined( BOOST_NO_CXX11_NULLPTR )
p3.reset( new X );
#endif
}
int main()
@@ -73,13 +69,9 @@ int main()
BOOST_TEST_EQ( p2.use_count(), 1 );
BOOST_TEST_EQ( p2.lock(), p1 );
#if !defined( BOOST_NO_CXX11_NULLPTR )
BOOST_TEST( p3.get() != 0 );
BOOST_TEST_EQ( p3.use_count(), 1 );
#endif
return boost::report_errors();
}