Title
__cpp_lib_constexpr_algorithms should also be defined in <utility>
Status
c++23
Section
[version.syn]
Submitter
Marc Mutz

Created on 2022-10-05.00:00:00 last changed 5 months ago

Messages

Date: 2022-11-17.00:42:33

Proposed resolution:

This wording is relative to N4917.

  1. Modify [version.syn] as indicated (It is suggested to retroactively apply to C++20):

    […]
    #define __cpp_lib_concepts             202207L // also in <concepts>, <compare>
    #define __cpp_lib_constexpr_algorithms 201806L // also in <algorithm>, <utility>
    #define __cpp_lib_constexpr_bitset     202202L // also in <bitset>
    […]
    
Date: 2022-11-12.00:00:00

[ 2022-11-12 Approved at November 2022 meeting in Kona. Status changed: Voting → WP. ]

Date: 2022-10-15.00:00:00

[ 2022-10-12; Reflector poll ]

Set status to Tentatively Ready after eight votes in favour during reflector poll.

Date: 2022-10-05.00:00:00

[version.syn] says that __cpp_lib_constexpr_algorithms is only defined in <version> and <algorithm>, but the macro applies to std::exchange() in <utility> as well (via P0202R3), so it should also be available from <utility>.

History
Date User Action Args
2023-11-22 15:47:43adminsetstatus: wp -> c++23
2022-11-17 00:42:33adminsetmessages: + msg13082
2022-11-17 00:42:33adminsetstatus: voting -> wp
2022-11-08 03:46:49adminsetstatus: ready -> voting
2022-10-12 14:38:10adminsetmessages: + msg12861
2022-10-12 14:38:10adminsetstatus: new -> ready
2022-10-09 09:19:08adminsetmessages: + msg12843
2022-10-05 00:00:00admincreate