1 #ifndef BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED
2 #define BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED
4 // MS compatible compilers support #pragma once
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
11 // boost/ptr_container/detail/ptr_container_disable_deprecated.hpp
13 // Copyright 2015 Peter Dimov
15 // Distributed under the Boost Software License, Version 1.0.
16 // See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
20 #include <boost/config.hpp>
22 #if defined( __GNUC__ ) && ( defined( __GXX_EXPERIMENTAL_CXX0X__ ) || ( __cplusplus >= 201103L ) ) && !defined(BOOST_NO_AUTO_PTR)
24 # if defined( BOOST_GCC )
26 # if BOOST_GCC >= 40600
27 # define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
30 # elif defined( __clang__ ) && defined( __has_warning )
32 # if __has_warning( "-Wdeprecated-declarations" )
33 # define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
40 #endif // #ifndef BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED