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

2023-12-02


2308. Structured bindings and lambda capture

Section: 9.6  [dcl.struct.bind]     Status: NAD     Submitter: Richard Smith     Date: 2016-07-23

Whether or not structured bindings can be captured by a lambda and, if so, with what semantics, is unclear from the current wording.

Rationale (March, 2018):

Paper P0588R1, adopted at the October, 2017 meeting, answers the question by explicitly prohibiting such captures.