Created on 2014-07-16.00:00:00 last changed 1 month ago
Change in 126.96.36.199 [expr.prim.lambda.general] paragraph 5 as follows:
If a lambda-declarator does not
include aparameter-declaration-clause, it is as if () were inserted at the start of the lambda-declarator. If the lambda-declarator does not include a trailing-return-type, the lambda return type is auto, which is deduced from return statements as described in 188.8.131.52 [dcl.spec.auto].
According to 184.108.40.206 [expr.prim.lambda.closure] paragraph 3,
The closure type for a lambda-expression has a public inline function call operator (for a non-generic lambda) or function call operator template (for a generic lambda) (12.4.4 [over.call]) whose parameters and return type are described by the lambda-expression's parameter-declaration-clause and trailing-return-type respectively, and whose template-parameter-list consists of the specified template-parameter-list, if any.
This is insufficiently precise because the trailing-return-type might itself contain a parameter-declaration-clause.
|2022-04-02 22:01:31||admin||set||messages: + msg6787|
|2022-04-02 22:01:31||admin||set||status: drafting -> open|