On 05/22/2014 02:26 PM, Paolo Carlini wrote:
Good. I wanted to ask about that. Also, by copy instead of by value, right? Because the Standard always talks about copy (likewise clang).
Yes.
Right, thanks. I'm probably going to add it, at some point. Me, I was looking for something not using C++14 initializers, I think in that case is more difficult!?!
The error can only occur with a C++14 initializer; a (captured) variable is always an lvalue.
Jason