[Development] RFC: lambda or lambda return from lambda?

Marc Mutz marc.mutz at kdab.com
Mon Feb 1 18:21:42 CET 2016


On Monday 01 February 2016 17:06:51 Thiago Macieira wrote:
> On Monday 01 February 2016 11:08:54 Marc Mutz wrote:
> > One way to have this with lambdas is to write a lambda that returns a
> > lambda.  We can do this, because auto return type deduction works for
> > lambdas already in C++11, unlike for normal functions. With this, the
> > above
> >
> > would become (hold tight):
> > 
> >   auto firstEquals = [](const auto &name) {
> 
> Does parameter auto detection work in C++11?

No, but you snipped the part of the mail where I explained that I used auto 
only to fit it to a single line.

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list