forked from boostorg/bind
Remove use of std::auto_ptr, it has been removed in C++17
This commit is contained in:
@@ -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 )
|
||||||
|
Reference in New Issue
Block a user