-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
P1032R1 Miscellaneous constexpr
P1424R1 __cpp_lib_constexpr
WG21-P1902 "Missing Feature-Test Macros 2017-2019" further revised this, saying:
[P1032R1] (Misc
constexprbits): 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_constexprand 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_utilityand 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