Re: C++ PATCH to add capture initializers to -std=c++1y

2013-04-24 Thread Jason Merrill
On 04/22/2013 03:19 PM, Jason Merrill wrote: The only thing missing from our implementation is support for list-initialization as well as = initialization; I'll add that soon. These patches add that and parenthesized initializers, and also conform to the proposal that init-captures be nameable

C++ PATCH to add capture initializers to -std=c++1y

2013-04-22 Thread Jason Merrill
At the Bristol C++ meeting we voted to accept generalized lambda capture initializers (e.g. [x = 42, y = std::move(y)]{ ... }), which were part of the initial implementation of lambdas in GCC, so initial support for C++1y is just a matter of checking cxx_dialect to avoid the pedwarn. The only