Skip to content

P1032R1 Miscellaneous constexpr #50

@StephanTLavavej

Description

@StephanTLavavej

P1032R1 Miscellaneous constexpr
P1424R1 __cpp_lib_constexpr

WG21-P1902 "Missing Feature-Test Macros 2017-2019" further revised this, saying:

[P1032R1] (Misc constexpr bits): This paper originally added a single feature test macro, __cpp_lib_constexpr_misc, that was since renamed by [P1424R1] to __cpp_lib_constexpr. Per the policy laid out in this paper, this paper proposes to remove __cpp_lib_constexpr and instead add separate macros for each header: __cpp_lib_constexpr_functional, __cpp_lib_constexpr_iterator, __cpp_lib_constexpr_string_view, __cpp_lib_constexpr_tuple, and __cpp_lib_constexpr_utility and to bump __cpp_lib_array_constexpr.

Feature-test macros as of WG21-N4842:

#define __cpp_lib_constexpr_iterator 201811L
#define __cpp_lib_constexpr_string_view 201811L
#define __cpp_lib_constexpr_tuple 201811L
#define __cpp_lib_constexpr_utility 201811L

The following added value is unusual (it was further increased for #51 WG21-P1065 "constexpr INVOKE" to 201907L, see SD-6):
#define __cpp_lib_constexpr_functional 201811L

The following increased value is unusual (it was originally increased for #49 WG21-P1023 "constexpr For std::array Comparisons" to 201806L, see SD-6):
#define __cpp_lib_array_constexpr 201811L

Metadata

Metadata

Assignees

No one assigned

    Labels

    cxx20C++20 featurefixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions