1 // Copyright 2020 Peter Dimov 2 // Distributed under the Boost Software License, Version 1.0. 3 // https://www.boost.org/LICENSE_1_0.txt 4 5 #if defined(__cpp_deduction_guides) 6 7 #include <boost/shared_ptr.hpp> 8 #include <memory> 9 main()10int main() 11 { 12 boost::shared_ptr p2( std::unique_ptr<int>( new int ) ); 13 } 14 15 #else 16 17 #include <boost/config/pragma_message.hpp> 18 19 BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_deduction_guides is not defined" ) 20 main()21int main() {} 22 23 #endif 24