This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


2378. Inconsistent grammar for reference init-capture of pack

Section:  [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.