Title
Rename __cpp_lib_ranges_to_container to __cpp_lib_ranges_to
Status
nad
Section
[version.syn]
Submitter
Hewill Kang

Created on 2023-02-05.00:00:00 last changed 22 months ago

Messages

Date: 2023-02-08.23:17:49

Proposed resolution:

This wording is relative to N4928.

  1. Modify [version.syn], header <version> synopsis, as indicated:

    […]
    #define __cpp_lib_ranges_stride                     202207L // also in <ranges>
    #define __cpp_lib_ranges_to_container               202202L // also in <ranges>
    #define __cpp_lib_ranges_zip                        202110L // also in <ranges>, <tuple>, <utility>
    […]
    
Date: 2023-02-08.23:17:49

[ Issaquah 2023-02-08 Status changed: New → NAD. ]

No consensus to change anything. The macro name is just a unique identifier, it doesn't have to be a precise description of the feature.

Date: 2023-02-05.00:00:00

LWG 3785 enables ranges::to to construct a non-range object from a range, confirming that this is the intended part of the original design.

However, the feature test macro for ranges::to is still named __cpp_lib_ranges_to_container, where the "container" part seems confusing to users.

History
Date User Action Args
2023-02-08 23:17:49adminsetmessages: + msg13295
2023-02-08 23:17:49adminsetstatus: new -> nad
2023-02-05 19:51:11adminsetmessages: + msg13262
2023-02-05 00:00:00admincreate