$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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