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

2024-12-19


2378. Inconsistent grammar for reference init-capture of pack

Section: 7.5.6.3  [expr.prim.lambda.capture]     Status: C++20     Submitter: Barry Revzin     Date: 2018-06-14

[Accepted (as paper P2095R0) at the February, 2020 (Prague) meeting.]

The grammar for init-capture is:

As a consequence a reference init-capture pack is written as

  [...&x = init]

instead of the way packs of references are commonly written:

  [&...x = init]

Notes from the November, 2018 meeting:

CWG agreed with the suggested direction.