sp_disable_deprecated.hpp 983 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef BOOST_SMART_PTR_DETAIL_SP_DISABLE_DEPRECATED_HPP_INCLUDED
  2. #define BOOST_SMART_PTR_DETAIL_SP_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/smart_ptr/detail/sp_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 ) )
  18. # if defined( BOOST_GCC )
  19. # if BOOST_GCC >= 40600
  20. # define BOOST_SP_DISABLE_DEPRECATED
  21. # endif
  22. # elif defined( __clang__ ) && defined( __has_warning )
  23. # if __has_warning( "-Wdeprecated-declarations" )
  24. # define BOOST_SP_DISABLE_DEPRECATED
  25. # endif
  26. # endif
  27. #endif
  28. #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_DISABLE_DEPRECATED_HPP_INCLUDED