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:
Jonathan Wakely 2022-10-17 09:38:02 +01:00
parent 59af5e0bda
commit 0f4815502d
4 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@
#endif
#if __cplusplus > 202002L
# define __cpp_lib_constexpr_charconv 202202L
# define __cpp_lib_constexpr_charconv 202207L
#endif
namespace std _GLIBCXX_VISIBILITY(default)

View file

@ -302,7 +302,7 @@
#if __cplusplus > 202002L
// c++23
#define __cpp_lib_byteswap 202110L
#define __cpp_lib_constexpr_charconv 202202L
#define __cpp_lib_constexpr_charconv 202207L
#define __cpp_lib_constexpr_typeinfo 202106L
#if __cpp_concepts >= 202002L
# define __cpp_lib_expected 202202L

View file

@ -5,7 +5,7 @@
#ifndef __cpp_lib_constexpr_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>"
#endif

View file

@ -11,6 +11,6 @@
#ifndef __cpp_lib_constexpr_charconv
# 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>"
#endif