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
+5
View File
@@ -13,6 +13,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#include <memory>
#include <string>
@@ -75,11 +76,15 @@ void test()
BOOST_TEST( X::instances == 0 );
#if !defined( BOOST_NO_AUTO_PTR )
{
std::auto_ptr<X> px( new X( 0 ) );
BOOST_TEST( X::instances == 1 );
}
#endif
BOOST_TEST( X::instances == 0 );
{