[Boost-bugs] [Boost C++ Libraries] #11704: Can't pass a generic lambda as an argument to a parser

Subject: [Boost-bugs] [Boost C++ Libraries] #11704: Can't pass a generic lambda as an argument to a parser
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-02 13:26:04


#11704: Can't pass a generic lambda as an argument to a parser
------------------------------------------+---------------------
 Reporter: Matheus Izvekov <mizvekov@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------------------+---------------------
 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)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11704>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC