From 60d3e0f4f3f44af38a8c72bc90d89714c913d96b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 6 Nov 2016 15:03:25 +0200 Subject: [PATCH] Remove use of std::auto_ptr, it has been removed in C++17 --- test/bind_function_ap_test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/bind_function_ap_test.cpp b/test/bind_function_ap_test.cpp index 900a131..67551d3 100644 --- a/test/bind_function_ap_test.cpp +++ b/test/bind_function_ap_test.cpp @@ -10,6 +10,14 @@ // 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 ) # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #elif defined( __clang__ ) && defined( __has_warning ) @@ -222,3 +230,5 @@ int main() test(); return boost::report_errors(); } + +#endif // #if defined( BOOST_NO_AUTO_PTR )