Title
Default-constructible and copy-assignable closure types
Status
cd5
Section
7.5.5.2 [expr.prim.lambda.closure]
Submitter
Ryou Ezoe

Created on 2014-05-24.00:00:00 last changed 3 months ago

Messages

Date: 2014-06-15.00:00:00

Rationale (June, 2014):

CWG was sympathetic to this request, although it felt that the conversion to a function pointer was irrelevant to this question. However, EWG should examine this request for a language change before any action is taken.

Date: 2017-11-15.00:00:00

[Accepted at the November, 2017 meeting as part of paper P0624R2.]

It would be more consistent if the closure type of a lambda expression with no lambda-capture were default-constructible and copy-assignable, since such lambdas are already convertible to a function pointer, which has those characteristics.

Rationale (June, 2014):

CWG was sympathetic to this request, although it felt that the conversion to a function pointer was irrelevant to this question. However, EWG should examine this request for a language change before any action is taken.

History
Date User Action Args
2022-04-28 06:53:56adminsetstatus: extension -> cd5
2014-07-07 00:00:00adminsetmessages: + msg5120
2014-07-07 00:00:00adminsetstatus: open -> extension
2014-05-24 00:00:00admincreate