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
The type of a lambda-expression (which is also the type of the closure object) is a unique, unnamed non-union class type, called the closure type, whose properties are described below.
Issue description:
It is not stated that the closure type must be non-final. Inheriting from a lambda is frequently used with std::visit to create ad hoc overload sets, and presumably the purpose of specifying non-union classes is to allow for this.
The type of a lambda-expression (which is also the type of the closure object) is a unique, unnamed non-union non-final class type, called the closure type, whose properties are described below.
Where the word final is colored as a keyword, as it is in [derivation]/4.