Quantcast
Channel: Programmer's Town - Access from a lambda to a member of a class
Viewing all articles
Browse latest Browse all 5

Re: Access from a lambda to a member of a class

$
0
0

Hello, B0FEE664, you wrote: BFE> And in the following standard record reduce and allow to write so: auto fn = [&m_n] (int n) {m_n = n;}; BFE>? Basically, probably.  too it is not pleasant: N3424: Lambda Correctness and Usability Issues he offers in the document (Good) Option 3: Add support for capture of member variables with the obvious semantics.


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images