Re: Parser no longer compiles when upgrading from Boost 1.31 to Boost 1.33
Paul Giaccone wrote:
> I have just upgraded from Boost 1.31 to 1.33 and hence to Spirit
> 1.8.x. I am having the problem similar to that in FAQ #1, but the
> information given there doesn't seem to help.
> Here is a code snippet from my grammar (modified a little to protect
> intellectual property rights):
> end_of_block = close_brace >> semicolon;
> variable_list = while_p(~eps_p(end_of_block))[token];
I found out what the problem was and how to fix it in the end. The rule
end_of_block has no actions, so I defined a scanner list containing
ScannerT and the no-actions scanner, and made end_of_block of type
rule<scanners> instead of rule<ScannerT>, as below. The code then compiled.