4 ms·
https://isocpp.org/files/papers/p0018r3.html https://isocpp.org/files/papers/p0018r3.html It's the best reference I found. The paper only talks of capturing "*
by vmorgulis 10y ago
https://isocpp.org/files/papers/p0018r3.html https://isocpp.org/files/papers/p0018r3.html
It's the best reference I found. The paper only talks of capturing "*this" by value (as in the original post of the topic).
I think I read that in a draft about coroutines. The idea was to capture "this" by reference and convert the lambda to a function pointer to make it movable.
It would useful for delegates or signals too.