diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index e34097171a5d61d8d2b39edd830ffa4bfe311826..5b554548ecddd322f845922148f11b57c7eb06b0 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -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 diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 5edca2f3007ac5780fe68a3c063d2f26a76f4f98..6b6187973a2316c263359303a08eb17596ba2b1f 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -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 diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc index e39f5928a1fdc4ae9b638d12964fd3bca705f8c5..56ff2d7cead3c36c4c362d777c5a2454b4d254f4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc @@ -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 diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc index 77f11865ac4c94b53d59a68fbce9174fc055aa81..f0425cdab3d23700a3232999409671acb8b8a4d4 100644 --- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc +++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc @@ -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