header_deprecated.hpp 1.1 KB

123456789101112131415161718192021222324252627
  1. // (C) Copyright Matt Borland 2021.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_MATH_TOOLS_HEADER_DEPRECATED
  6. #define BOOST_MATH_TOOLS_HEADER_DEPRECATED
  7. #ifndef BOOST_MATH_STANDALONE
  8. # include <boost/config/header_deprecated.hpp>
  9. # define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_HEADER_DEPRECATED(expr)
  10. #else
  11. # ifdef _MSC_VER
  12. // Expands to "This header is deprecated; use expr instead."
  13. # define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
  14. # else // GNU, Clang, Intel, IBM, etc.
  15. // Expands to "This header is deprecated use expr instead"
  16. # define BOOST_MATH_HEADER_DEPRECATED_MESSAGE(expr) _Pragma(#expr)
  17. # define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_MATH_HEADER_DEPRECATED_MESSAGE(message "This header is deprecated use " expr " instead")
  18. # endif
  19. #endif // BOOST_MATH_STANDALONE
  20. #endif // BOOST_MATH_TOOLS_HEADER_DEPRECATED