cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

JP2-022 7.5.5.2 p5 [expr.prim.lambda.closure] Attributes on lambdas #564

Closed jensmaurer closed 9 months ago

jensmaurer commented 9 months ago

“the type of the corresponding function call operator or operator template” sounds like a function type. It would be better to use “the closure type”.

In "An attribute-specifier-seq in a lambda-declarator appertains to the type of the corresponding function call operator or operator template.", replace "function call operator or operator template" with "closure type"

jensmaurer commented 9 months ago

The comment is wrong; we mean the function type of the synthesized function call operator (template).

jensmaurer commented 9 months ago

There is no consensus for a change. Any attributes of a lambda-declarator are considered to be attached to the synthesized function call operator or operator template (i.e. the member function of the closure type), not the closure type itself.

tkoeppe commented 9 months ago

Noted.