diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-07 10:24:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-07 10:24:27 +0200 |
commit | a07a512cfb62e38a760b9b3795d45873fdaaae56 (patch) | |
tree | 84680946d8510b8353d4155243aefa8ac1d4011d /cutl | |
parent | 133604f163cc89639b9dfc1d892b56f0ace15792 (diff) |
Disable auto_ptr in C++11 mode
Diffstat (limited to 'cutl')
-rw-r--r-- | cutl/compiler/code-stream.hxx | 1 | ||||
-rw-r--r-- | cutl/container/any.hxx | 1 | ||||
-rw-r--r-- | cutl/details/boost/config/user.hpp | 4 |
3 files changed, 5 insertions, 1 deletions
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 <memory> // std::auto_ptr #include <ostream> #include <cutl/exception.hxx> 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 <typeinfo> // std::type_info #include <cutl/exception.hxx> +#include <cutl/details/config.hxx> // 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 <cutl/details/config.hxx> +#ifdef LIBCUTL_CXX11 +# define BOOST_NO_AUTO_PTR +#endif + // We have removed those. // #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS |