sp_obsolete.hpp 914 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED
  2. #define BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. // boost/smart_ptr/detail/sp_obsolete.hpp
  8. //
  9. // Copyright 2020 Peter Dimov
  10. // Distributed under the Boost Software License, Version 1.0.
  11. // https://www.boost.org/LICENSE_1_0.txt
  12. //
  13. // Defines the BOOST_SP_OBSOLETE macro that emits a deprecation
  14. // message.
  15. #include <boost/config/pragma_message.hpp>
  16. #if !defined( BOOST_SP_NO_OBSOLETE_MESSAGE )
  17. #define BOOST_SP_OBSOLETE() BOOST_PRAGMA_MESSAGE("This platform-specific implementation is presumed obsolete and is slated for removal. If you want it retained, please open an issue in https://github.com/boostorg/smart_ptr.")
  18. #else
  19. #define BOOST_SP_OBSOLETE()
  20. #endif
  21. #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED