forked from boostorg/smart_ptr
Do not use components removed in C++17 (auto_ptr, binary_function)
This commit is contained in:
@@ -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 );
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user