header_deprecated.hpp 848 B

1234567891011121314151617181920212223242526
  1. #ifndef BOOST_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
  2. #define BOOST_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
  3. // Copyright 2017 Peter Dimov.
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. //
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. //
  10. // BOOST_HEADER_DEPRECATED("<alternative>")
  11. //
  12. // Expands to the equivalent of
  13. // BOOST_PRAGMA_MESSAGE("This header is deprecated. Use <alternative> instead.")
  14. //
  15. // Note that this header is C compatible.
  16. #include <boost/config/pragma_message.hpp>
  17. #if defined(BOOST_ALLOW_DEPRECATED_HEADERS) || defined(BOOST_ALLOW_DEPRECATED)
  18. # define BOOST_HEADER_DEPRECATED(a)
  19. #else
  20. # define BOOST_HEADER_DEPRECATED(a) BOOST_PRAGMA_MESSAGE("This header is deprecated. Use " a " instead.")
  21. #endif
  22. #endif // BOOST_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED