This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


1743. init-captures in nested lambdas

Section: 7.5.5.3  [expr.prim.lambda.capture]     Status: NAD     Submitter: Faisal Vali     Date: 2013-08-30

According to 7.6.1.2 [expr.sub] paragraph 11,

No entity is captured by an init-capture.

It should be made clearer that a variable, odr-used by an init-capture in a nested lambda, is still captured by the containing lambda as a result of the init-capture.

Rationale (October, 2015):

Subsequent edits have removed the offending phraseXS.