1 #ifndef BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED
2 #define BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED
3 
4 // MS compatible compilers support #pragma once
5 
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
7 # pragma once
8 #endif
9 
10 //
11 //  boost/ptr_container/detail/ptr_container_disable_deprecated.hpp
12 //
13 //  Copyright 2015 Peter Dimov
14 //
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)
18 //
19 
20 #include <boost/config.hpp>
21 
22 #if defined( __GNUC__ ) && ( defined( __GXX_EXPERIMENTAL_CXX0X__ ) || ( __cplusplus >= 201103L ) ) && !defined(BOOST_NO_AUTO_PTR)
23 
24 # if defined( BOOST_GCC )
25 
26 #  if BOOST_GCC >= 40600
27 #   define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
28 #  endif
29 
30 # elif defined( __clang__ ) && defined( __has_warning )
31 
32 #  if __has_warning( "-Wdeprecated-declarations" )
33 #   define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
34 #  endif
35 
36 # endif
37 
38 #endif
39 
40 #endif // #ifndef BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED
41