Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Doesn't included in Boost yet?
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2009-01-13 07:57:05


Mathias Gaunard <mathias.gaunard <at> ens-lyon.org> writes:

> You may not write [&](a) { return a + 42; }
> You have to write
> [&](SomeType a) { return a + 42; }

We're talking about different things. Your examples show lambda parameters
while my example has no parameters at all, only captures:

[&a, b]() -> void { /* ... */ }
       ^^ - no parameters

--
Alex

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk