]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Update value of __cpp_lib_ios_noreplace macro
authorJonathan Wakely <jwakely@redhat.com>
Thu, 4 Aug 2022 09:18:23 +0000 (10:18 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 5 Aug 2022 12:32:02 +0000 (13:32 +0100)
My P2467R1 proposal was accepted for C++23 so there's an official value
for this macro now.

libstdc++-v3/ChangeLog:

* include/bits/ios_base.h (__cpp_lib_ios_noreplace): Update
value to 202207L.
* include/std/version (__cpp_lib_ios_noreplace): Likewise.
* testsuite/27_io/basic_ofstream/open/char/noreplace.cc: Check
for new value.
* testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
Likewise.

(cherry picked from commit 3e9bd6b2b1782891639fa5d49b7d2a933b8e85cd)

libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc

index bdb30140536cbd3de18e344613e70ae93b1da8b9..2c33003ed071ce32a39c05f0420c418a85a43924 100644 (file)
@@ -470,7 +470,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     static const openmode __noreplace =        _S_noreplace;
 
 #if __cplusplus >= 202100L
-#define __cpp_lib_ios_noreplace 202200L
+#define __cpp_lib_ios_noreplace 202207L
     /// Open a file in exclusive mode.
     static const openmode noreplace =  _S_noreplace;
 #endif
index 22280e1a34974e41ba9c37dbdd202d027e27a27c..dcc5008d8a5b82e4ac2144870d156adfb2955fc9 100644 (file)
 # define __cpp_lib_expected 202202L
 #endif
 #define __cpp_lib_invoke_r 202106L
-#define __cpp_lib_ios_noreplace 202200L
+#define __cpp_lib_ios_noreplace 202207L
 #if __cpp_lib_concepts
 # undef __cpp_lib_optional
 # define __cpp_lib_optional 202110L
index e39f5928a1fdc4ae9b638d12964fd3bca705f8c5..56ff2d7cead3c36c4c362d777c5a2454b4d254f4 100644 (file)
@@ -2,10 +2,10 @@
 
 #include <ios>
 
-#if __cplusplus >= 202200L
+#if __cplusplus >= 202207L
 #ifndef __cpp_lib_ios_noreplace
 # error "Feature-test macro for ios::noreplace missing in <ios>"
-#elif __cpp_lib_ios_noreplace < 202200L
+#elif __cpp_lib_ios_noreplace < 202207L
 # error "Feature-test macro for ios::noreplace has wrong value in <ios>"
 #endif
 #endif
index 77f11865ac4c94b53d59a68fbce9174fc055aa81..f0425cdab3d23700a3232999409671acb8b8a4d4 100644 (file)
@@ -2,10 +2,10 @@
 
 #include <version>
 
-#if __cplusplus >= 202200L
+#if __cplusplus >= 202207L
 #ifndef __cpp_lib_ios_noreplace
 # error "Feature-test macro for ios::noreplace missing in <version>"
-#elif __cpp_lib_ios_noreplace < 202200L
+#elif __cpp_lib_ios_noreplace < 202207L
 # error "Feature-test macro for ios::noreplace has wrong value in <version>"
 #endif
 #endif