Title
Capturing this by reference
Status
cd3
Section
7.5.5.3 [expr.prim.lambda.capture]
Submitter
Brian Bi

Created on 2015-07-23.00:00:00 last changed 88 months ago

Messages

Date: 2016-02-15.00:00:00

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.

Date: 2016-02-15.00:00:00

Proposed resolution (February, 2016):

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

An entity is captured by copy if

  • it is this,

  • it is implicitly captured and the capture-default is =, or

  • if it is explicitly captured with a capture that is not of the form & identifier or & identifier initializer.

For each entity captured by copy...

Date: 2015-07-23.00:00:00

The current wording of 7.5.5 [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.

History
Date User Action Args
2017-02-06 00:00:00adminsetmessages: + msg6098
2017-02-06 00:00:00adminsetstatus: tentatively ready -> cd3
2016-02-15 00:00:00adminsetmessages: + msg5695
2016-02-15 00:00:00adminsetstatus: drafting -> tentatively ready
2015-07-23 00:00:00admincreate