Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-12-20


2668.co_await in alambda-expression

Section:7.6.2.4  [expr.await]    Status:CD7    Submitter:Jim X    Date:2022-12-12

[Accepted as a DR at the March, 2024 meeting.]

Subclause 7.6.2.4 [expr.await] paragraph 2 disallowsanawait-expression to appear in the body ofalambda-expression:

Anawait-expression shall appear only in apotentially-evaluated expression within thecompound-statementof afunction-body outside of a handler(14.1 [except.pre]). ...

This is probably unintended.

Proposed resolution (approved by CWG 2023-11-11):

Change in 7.6.2.4 [expr.await] paragraph 2 as follows:

Anawait-expression shall appearonlyinas a potentially-evaluated expressionwithin thecompound-statement ofafunction-bodyorlambda-expression, in eithercase outside of a handler (14.1 [except.pre]). ...



[8]ページ先頭

©2009-2026 Movatter.jp