[committed] libstdc++: Update value of __cpp_lib_ios_noreplace macro
Commit Message
Tested powerpc64le-linux, pushed to trunk.
-- >8 --
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.
---
libstdc++-v3/include/bits/ios_base.h | 2 +-
libstdc++-v3/include/std/version | 2 +-
.../testsuite/27_io/basic_ofstream/open/char/noreplace.cc | 4 ++--
.../testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
@@ -474,7 +474,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
@@ -316,7 +316,7 @@
# 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
@@ -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
@@ -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