1
0
forked from boostorg/bind

Remove use of std::auto_ptr, it has been removed in C++17

This commit is contained in:
Peter Dimov
2016-11-06 15:03:25 +02:00
parent 209bda011d
commit 60d3e0f4f3

View File

@@ -10,6 +10,14 @@
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
// //
#if defined( BOOST_NO_AUTO_PTR )
int main()
{
}
#else
#if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 406 ) #if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 406 )
# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#elif defined( __clang__ ) && defined( __has_warning ) #elif defined( __clang__ ) && defined( __has_warning )
@@ -222,3 +230,5 @@ int main()
test(); test();
return boost::report_errors(); return boost::report_errors();
} }
#endif // #if defined( BOOST_NO_AUTO_PTR )