Re:Lambda expression comparison between C++11, C++14 and C++17
by vmorgulis on Sunday May 15, 2016 @08:19AM
(#11700635)
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.
Currently, any stateless lambda can decompose into a function pointer and be passed to any function that expects a function pointer, right?
Are you saying that ++17 has augmented this, and if so can you provide more details or a reference (or an example) as I'm quite curious to know more.