Title
Lifetime of a closure object with members captured by reference
Status
cd2
Section
7.5.5 [expr.prim.lambda]
Submitter
UK

Created on 2009-03-03.00:00:00 last changed 170 months ago

Messages

Date: 2009-07-15.00:00:00

Proposed resolution (July, 2009)

See document PL22.16/09-0117 = WG21 N2927.

Date: 2009-03-15.00:00:00

Notes from the March, 2009 meeting:

Making the suggested change would be problematic for an implementation in which the “reference members” were actually implemented using offsets from a captured stack pointer and in which nested blocks were pushed onto the stack (to optimize space for large local objects, for example).

Date: 2009-03-03.00:00:00
N2800 comment UK 40

7.5.5 [expr.prim.lambda] paragraph 13 ties the effective lifetime of a closure object with members captured by reference to the innermost block scope in which the lambda appears, rather than to the lifetime of the objects to which the references are bound. This seems too restrictive.

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: wp -> cd2
2009-11-08 00:00:00adminsetstatus: dr -> wp
2009-08-03 00:00:00adminsetstatus: review -> dr
2009-03-23 00:00:00adminsetmessages: + msg1928
2009-03-23 00:00:00adminsetmessages: + msg1927
2009-03-03 00:00:00admincreate