]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/metaparse/config.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / metaparse / config.hpp
CommitLineData
7c673cae
FG
1#ifndef BOOST_METAPARSE_CONFIG_HPP
2#define BOOST_METAPARSE_CONFIG_HPP
3
4// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9#include <boost/config.hpp>
10
11/*
12 * Compiler workarounds
13 */
14
15// BOOST_NO_CXX11_CONSTEXPR is not defined in gcc 4.6
16#if \
17 defined BOOST_NO_CXX11_CONSTEXPR || defined BOOST_NO_CONSTEXPR || ( \
18 !defined __clang__ && defined __GNUC__ \
19 && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) \
20 )
21
22# define BOOST_NO_CONSTEXPR_C_STR
23
24#endif
25
26/*
b32b8144 27 * C++ standard to use
7c673cae
FG
28 */
29
b32b8144
FG
30// Allow overriding this
31#ifndef BOOST_METAPARSE_STD
7c673cae 32
b32b8144
FG
33// special-case MSCV >= 1900 as its constexpr support is good enough for
34// Metaparse
35# if \
36 !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \
37 && !defined BOOST_NO_VARIADIC_TEMPLATES \
38 && ( \
39 (!defined BOOST_NO_CONSTEXPR && !defined BOOST_NO_CXX11_CONSTEXPR) \
40 || (defined _MSC_VER && _MSC_VER >= 1900) \
41 ) \
42 && (!defined BOOST_GCC || BOOST_GCC >= 40700)
43
44# define BOOST_METAPARSE_STD 2011
45
46# else
47
48# define BOOST_METAPARSE_STD 1998
49
50# endif
7c673cae
FG
51
52#endif
53
b32b8144
FG
54/*
55 * Metaparse config
56 */
57
58#if BOOST_METAPARSE_STD >= 2011
59# define BOOST_METAPARSE_VARIADIC_STRING
60#endif
61
7c673cae
FG
62#endif
63