Opened 3 years ago

#11704 new Bugs

Can't pass a generic lambda as an argument to a parser

Reported by: Matheus Izvekov <mizvekov@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:


This example will fail to compile:

auto f = [](qi::unused_type, auto &ctx) { return true; }; qi::rule<const char*> r{ qi::eps(f) };

Changing the lambda to a non-generic one will make this work (by passing the context type explicitly)

Attachments (1) (202 bytes) - added by Matheus Izvekov <mizvekov@…> 3 years ago.

Download all attachments as: .zip

Change History (1)

Changed 3 years ago by Matheus Izvekov <mizvekov@…>

Attachment: added
Note: See TracTickets for help on using tickets.