Title
Feature testing macro for constexpr algorithms
Status
c++20
Section
[support.limits.general]
Submitter
Antony Polukhin

Created on 2019-08-14.00:00:00 last changed 38 months ago

Messages

Date: 2019-09-02.12:46:53

Proposed resolution:

This wording is relative to N4830.

  1. Modify the Table 36 "Standard library feature-test macros" [tab:support.ft] in [support.limits.general] as indicated:

    Table 36: Standard library feature-test macros [tab:support.ft]
    Macro name Value Header(s)
    […]
    __cpp_lib_constexpr_swap_algorithms 201806L <algorithm>
    […]
Date: 2019-09-02.00:00:00

[ 2019-09-02 Issue Prioritization ]

Status to Tentatively Ready and priority to 0 after five positive votes on the reflector.

Date: 2019-08-14.00:00:00

Feature testing macro from P0202 "Add Constexpr Modifiers to Functions in <algorithm> and <utility> Headers" is missing in the WD.

For user convenience and to reduce feature testing macro count it would be better to stick to initial version of P0202 that was providing only the __cpp_lib_constexpr_algorithms.

So remove __cpp_lib_constexpr_swap_algorithms, define __cpp_lib_constexpr_algorithms to 201703L if P0202 is implemented, to 201806L if P0202+P0879 are implemented.

History
Date User Action Args
2021-02-25 10:48:01adminsetstatus: wp -> c++20
2019-11-19 14:48:30adminsetstatus: voting -> wp
2019-10-07 02:48:00adminsetstatus: ready -> voting
2019-09-02 12:46:53adminsetmessages: + msg10597
2019-09-02 12:46:53adminsetstatus: new -> ready
2019-08-17 17:11:49adminsetmessages: + msg10562
2019-08-14 00:00:00admincreate