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