From 5e61ba4e9e0e8bb194e302689794f0467fe989a9 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Fri, 31 Oct 2025 14:24:49 -0500 Subject: [PATCH] Fix C++17 builds. --- test/github_issues.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/github_issues.cpp b/test/github_issues.cpp index be2497ca..b4fd52b9 100644 --- a/test/github_issues.cpp +++ b/test/github_issues.cpp @@ -344,6 +344,7 @@ void github_issue_248() } } +#if BOOST_PARSER_USE_CONCEPTS namespace github_issue_268_ { namespace bp = boost::parser; constexpr bp::rule name = "name"; @@ -365,9 +366,11 @@ namespace github_issue_268_ { auto lu_table_template_1_permut_rule_def = (bp::lit("index_1") >> '(' >> qd_vec >> ')' >> ';') || (bp::lit("variable_1") >> ':' >> name >> ';'); BOOST_PARSER_DEFINE_RULES(lu_table_template_1_permut_rule) } +#endif void github_issue_268() { +#if BOOST_PARSER_USE_CONCEPTS namespace bp = boost::parser; using namespace github_issue_268_; std::string inputstring = "index_1 ( \"1\" ) ; variable_1 : bier;"; @@ -391,6 +394,7 @@ void github_issue_268() inputstring, lu_table_template_1_permut_rule, bp::blank, bp::trace::off); std::cout<< "permut_parser generates this type:\n" << typeid(permut_result.value()).name() << std::endl; BOOST_TEST(permut_result); +#endif } void github_issue_279()