The current object (*this) capture in a lambda expression has gone through some changes since C++11.
Capture *this in lambda expression: Timeline of change
by Hitesh Kumar
From the article:
A lambda defined inside a non-static member function can directly access the members of the current object (or its copy) via an appropriate capture clause. But how the current object can be captured has gone through some changes since C++11.
Add a Comment