ptr_container_disable_deprecated.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. //
  8. // boost/ptr_container/detail/ptr_container_disable_deprecated.hpp
  9. //
  10. // Copyright 2015 Peter Dimov
  11. //
  12. // Distributed under the Boost Software License, Version 1.0.
  13. // See accompanying file LICENSE_1_0.txt or copy at
  14. // http://www.boost.org/LICENSE_1_0.txt)
  15. //
  16. #include <boost/config.hpp>
  17. #if defined( __GNUC__ ) && ( defined( __GXX_EXPERIMENTAL_CXX0X__ ) || ( __cplusplus >= 201103L ) ) && !defined(BOOST_NO_AUTO_PTR)
  18. # if defined( BOOST_GCC )
  19. # if BOOST_GCC >= 40600
  20. # define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
  21. # endif
  22. # elif defined( __clang__ ) && defined( __has_warning )
  23. # if __has_warning( "-Wdeprecated-declarations" )
  24. # define BOOST_PTR_CONTAINER_DISABLE_DEPRECATED
  25. # endif
  26. # endif
  27. #endif
  28. #endif // #ifndef BOOST_PTR_CONTAINER_DETAIL_PTR_CONTAINER_DISABLE_DEPRECATED_HPP_INCLUDED