]>
Commit | Line | Data |
---|---|---|
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 | /* | |
27 | * Metaparse config | |
28 | */ | |
29 | ||
30 | #if \ | |
31 | !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \ | |
32 | && !defined BOOST_NO_VARIADIC_TEMPLATES \ | |
33 | && !defined BOOST_METAPARSE_VARIADIC_STRING | |
34 | ||
35 | # define BOOST_METAPARSE_VARIADIC_STRING | |
36 | ||
37 | #endif | |
38 | ||
39 | #endif | |
40 |