Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:00:47

0001 /*=============================================================================
0002     Copyright (c) 2001-2013 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(BOOST_SPIRIT_X3_MARCH_04_2007_0852PM)
0008 #define BOOST_SPIRIT_X3_MARCH_04_2007_0852PM
0009 
0010 #if defined(_MSC_VER)
0011 #pragma once
0012 #endif
0013 
0014 #if !defined BOOST_SPIRIT_X3_HIDE_CXX17_WARNING && !( true \
0015   && defined __cpp_if_constexpr && __cpp_if_constexpr >= 201606 \
0016   && defined __cpp_inline_variables && __cpp_inline_variables >= 201606 \
0017   && defined __cpp_fold_expressions && __cpp_fold_expressions >= 201603 \
0018   && defined __cpp_variadic_using && __cpp_variadic_using >= 201611 \
0019   && (defined __cpp_template_auto && __cpp_template_auto >= 201606 \
0020       || defined __cpp_nontype_template_parameter_auto && __cpp_nontype_template_parameter_auto >= 201606) \
0021   && defined __cpp_nontype_template_args && __cpp_nontype_template_args >= 201411 \
0022 )
0023 # define BOOST_SPIRIT_X3_STRINGIZE_IMPL(x) #x
0024 # define BOOST_SPIRIT_X3_STRINGIZE(x) BOOST_SPIRIT_X3_STRINGIZE_IMPL(x)
0025 # if defined __GNUC__ || defined __clang__
0026 #  warning "Spirit X3 will soon use C++17 features which your compiler does not support"
0027 #  if (defined __clang__ && __clang_major__ >= 4 || __GNUC__ >= 7) &&  __cplusplus < 201703L
0028 #   warning "Use -std=c++17 or -std=gnu++17 compiler flag to enable C++17 mode"
0029 #  endif
0030 #  warning "Minimal supported compiler versions: Clang 4 / GCC 7 / MSC 1915 (VS 2017 v15.8)"
0031 #  if defined __clang__
0032 #   pragma message "This compiler seems to be Clang " BOOST_SPIRIT_X3_STRINGIZE(__clang_major__) " (__cplusplus=" BOOST_SPIRIT_X3_STRINGIZE(__cplusplus) ")"
0033 #  else
0034 #   pragma message "This compiler seems to be GCC " BOOST_SPIRIT_X3_STRINGIZE(__GNUC__) " (__cplusplus=" BOOST_SPIRIT_X3_STRINGIZE(__cplusplus) ")"
0035 #  endif
0036 #  warning "Define BOOST_SPIRIT_X3_HIDE_CXX17_WARNING to hide the warning"
0037 # elif defined _MSC_VER
0038 #  pragma message (__FILE__ "(" BOOST_SPIRIT_X3_STRINGIZE(__LINE__) "): warning: Spirit X3 will soon use C++17 features which your compiler does not support" )
0039 #  ifdef _MSVC_LANG
0040 #   if _MSC_VER >= 1915 && _MSVC_LANG < 201703L
0041 #    pragma message (__FILE__ "(" BOOST_SPIRIT_X3_STRINGIZE(__LINE__) "): warning: Use /std:c++17 compiler flag to enable C++17 mode" )
0042 #   endif
0043 #   define BOOST_SPIRIT_X3_TMP "_MSVC_LANG=" BOOST_SPIRIT_X3_STRINGIZE(_MSVC_LANG)
0044 #  elif defined _HAS_CXX17
0045 #   define BOOST_SPIRIT_X3_TMP "_HAS_CXX17 defined"
0046 #  else
0047 #   define BOOST_SPIRIT_X3_TMP "__cplusplus=" BOOST_SPIRIT_X3_STRINGIZE(__cplusplus)
0048 #  endif
0049 #  pragma message (__FILE__ "(" BOOST_SPIRIT_X3_STRINGIZE(__LINE__) "): warning: Minimal supported compiler versions: Clang 4 / GCC 7 / MSC 1915 (VS 2017 v15.8)" )
0050 #  pragma message (__FILE__ "(" BOOST_SPIRIT_X3_STRINGIZE(__LINE__) "): warning: This compiler seems to be MSC " BOOST_SPIRIT_X3_STRINGIZE(_MSC_VER) " (" BOOST_SPIRIT_X3_TMP ")" )
0051 #  undef BOOST_SPIRIT_X3_TMP
0052 #  pragma message (__FILE__ "(" BOOST_SPIRIT_X3_STRINGIZE(__LINE__) "): warning: Define BOOST_SPIRIT_X3_HIDE_CXX17_WARNING to hide the warning" )
0053 # else
0054 #  pragma message "warning: Spirit X3 will soon use C++17 features which your compiler does not support"
0055 #  pragma message "warning: Minimal supported compiler versions: Clang 4 / GCC 7 / MSC 1915 (VS 2017 v15.8)"
0056 #  pragma message "warning: Define BOOST_SPIRIT_X3_HIDE_CXX17_WARNING to hide the warning"
0057 # endif
0058 # undef BOOST_SPIRIT_X3_STRINGIZE
0059 # undef BOOST_SPIRIT_X3_STRINGIZE_IMPL
0060 #endif
0061 
0062 #include <boost/spirit/home/x3/auxiliary.hpp>
0063 #include <boost/spirit/home/x3/char.hpp>
0064 #include <boost/spirit/home/x3/directive.hpp>
0065 #include <boost/spirit/home/x3/nonterminal.hpp>
0066 #include <boost/spirit/home/x3/numeric.hpp>
0067 #include <boost/spirit/home/x3/operator.hpp>
0068 #include <boost/spirit/home/x3/core.hpp>
0069 #include <boost/spirit/home/x3/string.hpp>
0070 
0071 #endif