Title
Inconsistent grammar for reference init-capture of pack
Status
c++20
Section
7.5.5.3 [expr.prim.lambda.capture]
Submitter
Barry Revzin

Created on 2018-06-14.00:00:00 last changed 7 months ago

Messages

Date: 2018-11-15.00:00:00

Notes from the November, 2018 meeting:

CWG agreed with the suggested direction.

Date: 2020-02-15.00:00:00

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

The grammar for init-capture is:

    capture:
      ...opt init-capture
    init-capture:
      identifier initializer
      & identifier initializer

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]
History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6435
2018-06-14 00:00:00admincreate