Opened 7 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:

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)

test.cc (202 bytes ) - added by Matheus Izvekov <mizvekov@…> 7 years ago.

Download all attachments as: .zip

Change History (1)

by Matheus Izvekov <mizvekov@…>, 7 years ago

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