This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 61088


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]