mirror of
				https://github.com/boostorg/smart_ptr.git
				synced 2025-11-04 09:41:43 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			459 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			459 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright 2020 Peter Dimov
 | 
						|
// Distributed under the Boost Software License, Version 1.0.
 | 
						|
// https://www.boost.org/LICENSE_1_0.txt
 | 
						|
 | 
						|
#if defined(__cpp_deduction_guides)
 | 
						|
 | 
						|
#include <boost/shared_ptr.hpp>
 | 
						|
#include <memory>
 | 
						|
 | 
						|
int main()
 | 
						|
{
 | 
						|
    boost::shared_ptr p2( std::unique_ptr<int>( new int ) );
 | 
						|
}
 | 
						|
 | 
						|
#else
 | 
						|
 | 
						|
#include <boost/config/pragma_message.hpp>
 | 
						|
 | 
						|
BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_deduction_guides is not defined" )
 | 
						|
 | 
						|
int main() {}
 | 
						|
 | 
						|
#endif
 |