You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CWG2465 clarified that the q1 is an lvalue that denotes *this for an implicit object member function. However, in a lambda expression whose operator() is an implicit object member function and a coroutine, *this doesn't denote the lambda closure object, and is possibly invalid (when neither this nor *this is captured).
Perhaps for a lambda expression we should specify q1 to be an lvalue that denotes the lambda closure object, and is const unless the lambda is mutable.
However, it seem that a captureless lambda should be handled as if the operator() is a static even if it's an implicit object member function. Otherwise, there would be behavioral difference between the operator() and the converted function pointer, as the latter can never have *this.