Re: Problem with alias in conjunction with inherited attributes

Seth Heeren <[email protected]> Mon, 25 Jan 2021 21:41:51 +0100
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On ma, 25. jan 15:32, APEL Martin wrote:
> As soon as I changed the definition of the rule to contain an inherited attribute of type ParseContext, like this:

You need to explicitly forward the inherited argument:

    RuleType b = qi::eps;
    RuleType a = b(qi::_r1);

See it live http://coliru.stacked-crooked.com/a/5454e37ab6b4ca01