forked from boostorg/smart_ptr
		
	Do not use components removed in C++17 (auto_ptr, binary_function)
This commit is contained in:
		@@ -1,3 +1,5 @@
 | 
			
		||||
#include <boost/config.hpp>
 | 
			
		||||
 | 
			
		||||
//
 | 
			
		||||
//  auto_ptr_rv_test.cpp
 | 
			
		||||
//
 | 
			
		||||
@@ -8,6 +10,14 @@
 | 
			
		||||
// http://www.boost.org/LICENSE_1_0.txt
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#if defined( BOOST_NO_AUTO_PTR )
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
#include <boost/shared_ptr.hpp>
 | 
			
		||||
#include <boost/detail/lightweight_test.hpp>
 | 
			
		||||
#include <memory>
 | 
			
		||||
@@ -109,3 +119,5 @@ int main()
 | 
			
		||||
 | 
			
		||||
    return boost::report_errors();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif // #if defined( BOOST_NO_AUTO_PTR )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user