Do not use components removed in C++17 (auto_ptr, binary_function)

This commit is contained in:
Peter Dimov
2016-11-06 15:35:46 +02:00
parent bdc19dee01
commit a7fbb0a841
6 changed files with 48 additions and 34 deletions

View File

@@ -850,6 +850,8 @@ void weak_ptr_constructor()
void auto_ptr_constructor()
{
#if !defined( BOOST_NO_AUTO_PTR )
{
std::auto_ptr<int> p;
boost::shared_ptr<int> pi(p);
@@ -1136,6 +1138,8 @@ void auto_ptr_constructor()
BOOST_TEST(X::instances == 0);
BOOST_TEST(Y::instances == 0);
#endif // #if !defined( BOOST_NO_AUTO_PTR )
}
void test()
@@ -1420,6 +1424,8 @@ void conversion_assignment()
void auto_ptr_assignment()
{
#if !defined( BOOST_NO_AUTO_PTR )
{
boost::shared_ptr<int> p1;
@@ -1516,6 +1522,8 @@ void auto_ptr_assignment()
BOOST_TEST(X::instances == 0);
BOOST_TEST(Y::instances == 0);
}
#endif // #if !defined( BOOST_NO_AUTO_PTR )
}
void test()