Movatterモバイル変換


[0]ホーム

URL:


Issue 1931 - WG21 CWG Issues
Title
Default-constructible and copy-assignable closure types
Status
cd5
Section
7.5.6.2 [expr.prim.lambda.closure]
Submitter
Ryou Ezoe

Created on2014-05-24.00:00:00 last changed46 months ago

Messages

msg5120 (view)
Date: 2014-06-15.00:00:00

Rationale (June, 2014):

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

msg5013 (view)
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 expressionwith nolambda-capture were default-constructible andcopy-assignable, since such lambdas are already convertible to a functionpointer, which has those characteristics.

History
DateUserActionArgs
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

[8]ページ先頭

©2009-2026 Movatter.jp