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


2659. Missing feature-test macro for lifetime extension in range-for loop

Section: 15.11  [cpp.predefined]     Status: C++23     Submitter: CWG     Date: 2022-12-02

[Accepted at the February, 2023 meeting.]

P2720R0 comment DE 038

Paper P2718R0 (Wording for P2644R1 Fix for Range-based for Loop), adopted at the November, 2022 meeting, omitted a consideration of a feature-test macro, although one is desirable.

Proposed resolution (approved by CWG 2023-01-06):

Change in 15.11 [cpp.predefined] table 23 as follows:

  __cpp_range_based_for 201603L 202211L