mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 04:22:13 +00:00
Use bp::get() instead of Hana literals in example, so as not to break non-Hana
builds.
This commit is contained in:
@@ -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<struct type_tag, type_t> type = "type";
|
||||
|
||||
Reference in New Issue
Block a user