From f99ae3b94ad0acef0cc92166d5108aade41da4ea Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sun, 11 Feb 2024 16:54:41 -0600 Subject: [PATCH] Use bp::get() instead of Hana literals in example, so as not to break non-Hana builds. --- test/parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parser.cpp b/test/parser.cpp index e408a1d7..03691c69 100644 --- a/test/parser.cpp +++ b/test/parser.cpp @@ -2833,8 +2833,9 @@ namespace rule_construction_example { namespace bp = boost::parser; auto doubles_to_type = [](auto & ctx) { - using namespace bp::literals; - _val(ctx) = type_t(_attr(ctx)[0_c] * _attr(ctx)[1_c]); + _val(ctx) = type_t( + bp::get(_attr(ctx), bp::llong<0>{}) * + bp::get(_attr(ctx), bp::llong<1>{})); }; bp::rule type = "type";