Opened 7 years ago
#11704 new Bugs
Can't pass a generic lambda as an argument to a parser
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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)
Note:
See TracTickets
for help on using tickets.