Created on 2009-05-23.00:00:00 last changed 179 months ago
[Voted into WP at March, 2010 meeting.]
Proposed resolution (October, 2009):
Change the grammar in 7.5.6 [expr.prim.lambda] paragraph 1 as follows:
Add a new paragraph at the end of 7.5.6 [expr.prim.lambda]:
A capture followed by an ellipsis is a pack expansion (13.7.4 [temp.variadic]). [Example:
template<typename ...Args> void f(Args... args) { auto l = [&, args...] { return g(args...); }; l(); }—end example]
Add a new bullet to the list in 13.7.4 [temp.variadic] paragraph 4:
[Editorial note: the editor may wish to consider sorting the bullets in this list in order of section reference.]
The following is not allowed by the current syntax of lambda-capture but would be useful:
template <typename ...Args> void f(Args... args) { auto l = [&, args...] { return g(args...); }; }
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-03-29 00:00:00 | admin | set | messages: + msg2671 |
2010-03-29 00:00:00 | admin | set | status: ready -> cd2 |
2009-11-08 00:00:00 | admin | set | messages: + msg2341 |
2009-11-08 00:00:00 | admin | set | status: open -> ready |
2009-05-23 00:00:00 | admin | create |