libstdc++: Fix value of __cpp_lib_constexpr_charconv
libstdc++-v3/ChangeLog: * include/std/charconv (__cpp_lib_constexpr_charconv): Define to correct value. * include/std/version (__cpp_lib_constexpr_charconv): Likewise. * testsuite/20_util/to_chars/constexpr.cc: Check correct value. * testsuite/20_util/to_chars/version.cc: Likewise.
This commit is contained in:
parent
59af5e0bda
commit
0f4815502d
4 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __cplusplus > 202002L
|
#if __cplusplus > 202002L
|
||||||
# define __cpp_lib_constexpr_charconv 202202L
|
# define __cpp_lib_constexpr_charconv 202207L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace std _GLIBCXX_VISIBILITY(default)
|
namespace std _GLIBCXX_VISIBILITY(default)
|
||||||
|
|
|
@ -302,7 +302,7 @@
|
||||||
#if __cplusplus > 202002L
|
#if __cplusplus > 202002L
|
||||||
// c++23
|
// c++23
|
||||||
#define __cpp_lib_byteswap 202110L
|
#define __cpp_lib_byteswap 202110L
|
||||||
#define __cpp_lib_constexpr_charconv 202202L
|
#define __cpp_lib_constexpr_charconv 202207L
|
||||||
#define __cpp_lib_constexpr_typeinfo 202106L
|
#define __cpp_lib_constexpr_typeinfo 202106L
|
||||||
#if __cpp_concepts >= 202002L
|
#if __cpp_concepts >= 202002L
|
||||||
# define __cpp_lib_expected 202202L
|
# define __cpp_lib_expected 202202L
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#ifndef __cpp_lib_constexpr_charconv
|
#ifndef __cpp_lib_constexpr_charconv
|
||||||
# error "Feature-test macro for constexpr charconv missing in <charconv>"
|
# error "Feature-test macro for constexpr charconv missing in <charconv>"
|
||||||
#elif __cpp_lib_constexpr_charconv != 202202L
|
#elif __cpp_lib_constexpr_charconv != 202207L
|
||||||
# error "Feature-test macro for constexpr charconv has wrong value in <charconv>"
|
# error "Feature-test macro for constexpr charconv has wrong value in <charconv>"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
|
|
||||||
#ifndef __cpp_lib_constexpr_charconv
|
#ifndef __cpp_lib_constexpr_charconv
|
||||||
# error "Feature-test macro for constexpr charconv missing in <version>"
|
# error "Feature-test macro for constexpr charconv missing in <version>"
|
||||||
#elif __cpp_lib_constexpr_charconv != 202202L
|
#elif __cpp_lib_constexpr_charconv != 202207L
|
||||||
# error "Feature-test macro for constexpr charconv has wrong value in <version>"
|
# error "Feature-test macro for constexpr charconv has wrong value in <version>"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue