]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/mp11/detail/config.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / mp11 / detail / config.hpp
1 #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED
2 #define BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED
3
4 // Copyright 2016 Peter Dimov.
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 //
8 // See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt
10
11 #include <boost/config.hpp>
12 #include <boost/detail/workaround.hpp>
13
14 #if defined( BOOST_NO_CXX11_CONSTEXPR )
15
16 # define BOOST_MP11_NO_CONSTEXPR
17
18 #elif defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, < 1920 )
19
20 # define BOOST_MP11_NO_CONSTEXPR
21
22 #endif
23
24 #if defined(__cpp_fold_expressions) && __cpp_fold_expressions >= 201603
25
26 # define BOOST_MP11_HAS_FOLD_EXPRESSIONS
27
28 #elif defined(BOOST_CLANG) && defined(__has_cpp_attribute)
29 # if __has_cpp_attribute(fallthrough) && __cplusplus >= 201406L // Clang 3.9+ in c++1z mode
30
31 # define BOOST_MP11_HAS_FOLD_EXPRESSIONS
32
33 # endif
34 #endif
35
36 #if defined(__has_builtin)
37 # if __has_builtin(__type_pack_element)
38
39 # define BOOST_MP11_HAS_TYPE_PACK_ELEMENT
40
41 # endif
42 #endif
43
44 #endif // #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED