]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix value of __cpp_lib_format macro [PR111826]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 8 Dec 2023 14:40:26 +0000 (14:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 9 Dec 2023 22:01:39 +0000 (22:01 +0000)
As noted in the PR, we support both features required for the 202110L
value, so we should define it with that value.

libstdc++-v3/ChangeLog:

PR libstdc++/111826
* include/std/format (__cpp_lib_format): Update value.
* include/std/version (__cpp_lib_format): Likewise.
* testsuite/std/format/functions/format.cc: Update expected
value.

(cherry picked from commit cdf45e00a936a76a785c592c9730f24ef1ac25cd)

libstdc++-v3/include/std/format
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/std/format/functions/format.cc

index 88510ccf60e0aa3c1b737453ec9d750e2c78d45c..f454c49e12d69bdcb31d77255593279edfe07255 100644 (file)
@@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 // 202106 std::format improvements.
 // 202110 Fixing locale handling in chrono formatters, generator-like types.
 // 202207 Encodings in localized formatting of chrono, basic-format-string.
-#define __cpp_lib_format 202106L
+#define __cpp_lib_format 202110L
 
 #if __cplusplus > 202002L
 // 202207 P2286R8 Formatting Ranges
index 02ead8f1443e8ff7a7020b555a5c81476f670576..31e79bc6f40eccafdf7d87d2e58940035c5d686a 100644 (file)
 #endif
 #define __cpp_lib_constexpr_vector 201907L
 #define __cpp_lib_erase_if 202002L
-#define __cpp_lib_format 202106L
+#define __cpp_lib_format 202110L
 #define __cpp_lib_generic_unordered_lookup 201811L
 #ifdef _GLIBCXX_HAS_GTHREADS
 # define __cpp_lib_jthread 201911L
index 59ed3be8baa36052ba569d963d9496e0692646da..b8ad4f1ed29bbd2ac0904941f12270b424f7dec1 100644 (file)
@@ -6,7 +6,7 @@
 
 #ifndef __cpp_lib_format
 # error "Feature test macro for std::format is missing in <format>"
-#elif __cpp_lib_format < 202106L
+#elif __cpp_lib_format < 202110L
 # error "Feature test macro for std::format has wrong value in <format>"
 #endif
 
@@ -14,7 +14,7 @@
 #include <version>
 #ifndef __cpp_lib_format
 # error "Feature test macro for std::format is missing in <version>"
-#elif __cpp_lib_format < 202106L
+#elif __cpp_lib_format < 202110L
 # error "Feature test macro for std::format has wrong value in <version>"
 #endif