]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | #ifndef BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED |
2 | #define BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED | |
3 | ||
4 | // Copyright 2021 Peter Dimov | |
5 | // Distributed under the Boost Software License, Version 1.0. | |
6 | // https://www.boost.org/LICENSE_1_0.txt | |
7 | ||
8 | #if __cplusplus >= 201402L | |
9 | ||
10 | # define BOOST_DESCRIBE_CXX14 | |
11 | # define BOOST_DESCRIBE_CXX11 | |
12 | ||
13 | #elif defined(_MSC_VER) && _MSC_VER >= 1900 | |
14 | ||
15 | # define BOOST_DESCRIBE_CXX14 | |
16 | # define BOOST_DESCRIBE_CXX11 | |
17 | ||
18 | #elif __cplusplus >= 201103L | |
19 | ||
20 | # define BOOST_DESCRIBE_CXX11 | |
21 | ||
22 | #endif | |
23 | ||
24 | #if defined(BOOST_DESCRIBE_CXX11) | |
25 | # define BOOST_DESCRIBE_CONSTEXPR_OR_CONST constexpr | |
26 | #else | |
27 | # define BOOST_DESCRIBE_CONSTEXPR_OR_CONST const | |
28 | #endif | |
29 | ||
30 | #define BOOST_DESCRIBE_MAYBE_UNUSED | |
31 | #if defined(__has_cpp_attribute) | |
32 | # if __has_cpp_attribute(maybe_unused) | |
33 | # undef BOOST_DESCRIBE_MAYBE_UNUSED | |
34 | # define BOOST_DESCRIBE_MAYBE_UNUSED [[maybe_unused]] | |
35 | # endif | |
36 | #endif | |
37 | ||
38 | #endif // #ifndef BOOST_DESCRIBE_DETAIL_CONFIG_HPP_INCLUDED |