Skip to content

Commit 5e61ba4

Browse files
committed
Fix C++17 builds.
1 parent dc6144e commit 5e61ba4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/github_issues.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ void github_issue_248()
344344
}
345345
}
346346

347+
#if BOOST_PARSER_USE_CONCEPTS
347348
namespace github_issue_268_ {
348349
namespace bp = boost::parser;
349350
constexpr bp::rule<struct name, std::string_view> name = "name";
@@ -365,9 +366,11 @@ namespace github_issue_268_ {
365366
auto lu_table_template_1_permut_rule_def = (bp::lit("index_1") >> '(' >> qd_vec >> ')' >> ';') || (bp::lit("variable_1") >> ':' >> name >> ';');
366367
BOOST_PARSER_DEFINE_RULES(lu_table_template_1_permut_rule)
367368
}
369+
#endif
368370

369371
void github_issue_268()
370372
{
373+
#if BOOST_PARSER_USE_CONCEPTS
371374
namespace bp = boost::parser;
372375
using namespace github_issue_268_;
373376
std::string inputstring = "index_1 ( \"1\" ) ; variable_1 : bier;";
@@ -391,6 +394,7 @@ void github_issue_268()
391394
inputstring, lu_table_template_1_permut_rule, bp::blank, bp::trace::off);
392395
std::cout<< "permut_parser generates this type:\n" << typeid(permut_result.value()).name() << std::endl;
393396
BOOST_TEST(permut_result);
397+
#endif
394398
}
395399

396400
void github_issue_279()

0 commit comments

Comments
 (0)