public inbox for
help / color / mirror / Atom feed
From: Jonathan Wakely <>
Subject: [gcc r12-8664] libstdc++: Update value of __cpp_lib_ios_noreplace macro
Date: Fri,  5 Aug 2022 12:32:12 +0000 (GMT)	[thread overview]
Message-ID: <> (raw)

commit r12-8664-g3a9dcef5c195c053cba0103fe3e60fab1b8905df
Author: Jonathan Wakely <>
Date:   Thu Aug 4 10:18:23 2022 +0100

    libstdc++: Update value of __cpp_lib_ios_noreplace macro
    My P2467R1 proposal was accepted for C++23 so there's an official value
    for this macro now.
            * 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/ Check
            for new value.
            * testsuite/27_io/basic_ofstream/open/wchar_t/
    (cherry picked from commit 3e9bd6b2b1782891639fa5d49b7d2a933b8e85cd)

 libstdc++-v3/include/bits/ios_base.h                                  | 2 +-
 libstdc++-v3/include/std/version                                      | 2 +-
 libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/    | 4 ++--
 libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/ | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index bdb30140536..2c33003ed07 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
     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;
diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version
index 22280e1a349..dcc5008d8a5 100644
--- a/libstdc++-v3/include/std/version
+++ b/libstdc++-v3/include/std/version
@@ -315,7 +315,7 @@
 # define __cpp_lib_expected 202202L
 #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
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/
index e39f5928a1f..56ff2d7cead 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/
@@ -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>"
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/
index 77f11865ac4..f0425cdab3d 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/
@@ -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>"

                 reply	other threads:[~2022-08-05 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).