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


2162. Capturing this by reference

Section: 7.5.6.3  [expr.prim.lambda.capture]     Status: CD3     Submitter: Brian Bi     Date: 2015-07-23

The current wording of 7.5.6 [expr.prim.lambda] paragraphs 15 and 16 does not, but presumably should, indicate that this, if implicitly captured, is always captured by copy and not by reference.

Proposed resolution (February, 2016):

Change 7.5.6 [expr.prim.lambda] paragraph 15 as follows, dividing the existing text into a bulleted list:

An entity is captured by copy if

For each entity captured by copy...

Notes from the February, 2016 meeting:

Paper P0018 is intended to change this area, so this issue is being returned to "review" status to accommodate those changes.