From a07a512cfb62e38a760b9b3795d45873fdaaae56 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Nov 2017 10:24:27 +0200 Subject: Disable auto_ptr in C++11 mode --- cutl/compiler/code-stream.hxx | 1 - cutl/container/any.hxx | 1 + cutl/details/boost/config/user.hpp | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cutl') diff --git a/cutl/compiler/code-stream.hxx b/cutl/compiler/code-stream.hxx index 4b79244..1d4cff4 100644 --- a/cutl/compiler/code-stream.hxx +++ b/cutl/compiler/code-stream.hxx @@ -5,7 +5,6 @@ #ifndef CUTL_COMPILER_CODE_STREAM_HXX #define CUTL_COMPILER_CODE_STREAM_HXX -#include // std::auto_ptr #include #include diff --git a/cutl/container/any.hxx b/cutl/container/any.hxx index 42fb1eb..ccf30fc 100644 --- a/cutl/container/any.hxx +++ b/cutl/container/any.hxx @@ -9,6 +9,7 @@ #include // std::type_info #include +#include // LIBCUTL_CXX11 namespace cutl { diff --git a/cutl/details/boost/config/user.hpp b/cutl/details/boost/config/user.hpp index be97597..9da38cd 100644 --- a/cutl/details/boost/config/user.hpp +++ b/cutl/details/boost/config/user.hpp @@ -11,6 +11,10 @@ #include +#ifdef LIBCUTL_CXX11 +# define BOOST_NO_AUTO_PTR +#endif + // We have removed those. // #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS -- cgit v1.1