config.hpp 878 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef BOOST_METAPARSE_CONFIG_HPP
  2. #define BOOST_METAPARSE_CONFIG_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/config.hpp>
  8. /*
  9. * Compiler workarounds
  10. */
  11. // BOOST_NO_CXX11_CONSTEXPR is not defined in gcc 4.6
  12. #if \
  13. defined BOOST_NO_CXX11_CONSTEXPR || defined BOOST_NO_CONSTEXPR || ( \
  14. !defined __clang__ && defined __GNUC__ \
  15. && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) \
  16. )
  17. # define BOOST_NO_CONSTEXPR_C_STR
  18. #endif
  19. /*
  20. * Metaparse config
  21. */
  22. #if \
  23. !defined BOOST_NO_CXX11_VARIADIC_TEMPLATES \
  24. && !defined BOOST_NO_VARIADIC_TEMPLATES \
  25. && !defined BOOST_METAPARSE_VARIADIC_STRING
  26. # define BOOST_METAPARSE_VARIADIC_STRING
  27. #endif
  28. #endif