From: Jonathan Wakely Date: Mon, 4 Oct 2021 19:16:47 +0000 (+0100) Subject: libstdc++: Update __cpp_lib_adaptor_iterator_pair_constructor value X-Git-Tag: basepoints/gcc-13~4135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e136807c5b5476ed02a2a40a14fe0df3c0f4f18;p=thirdparty%2Fgcc.git libstdc++: Update __cpp_lib_adaptor_iterator_pair_constructor value I started implementing this feature before it was voted into the C++ WP, and forgot to update the feature test macro after it was approved. This defines it to the correct value, as specified in the C++23 draft. libstdc++-v3/ChangeLog: * include/bits/stl_queue.h (__cpp_lib_adaptor_iterator_pair_constructor): Set to correct value. * include/bits/stl_stack.h (__cpp_lib_adaptor_iterator_pair_constructor): Likewise. * include/std/version (__cpp_lib_adaptor_iterator_pair_constructor): Likewise. * testsuite/23_containers/queue/cons_from_iters.cc: Update expected value. * testsuite/23_containers/stack/cons_from_iters.cc: Likewise. --- diff --git a/libstdc++-v3/include/bits/stl_queue.h b/libstdc++-v3/include/bits/stl_queue.h index 3da65c78eb80..68cfe865147c 100644 --- a/libstdc++-v3/include/bits/stl_queue.h +++ b/libstdc++-v3/include/bits/stl_queue.h @@ -196,7 +196,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : c(std::move(__q.c), __a) { } #if __cplusplus > 202002L -#define __cpp_lib_adaptor_iterator_pair_constructor 202100L +#define __cpp_lib_adaptor_iterator_pair_constructor 202106L template> diff --git a/libstdc++-v3/include/bits/stl_stack.h b/libstdc++-v3/include/bits/stl_stack.h index f04fa6af4798..429743f5514c 100644 --- a/libstdc++-v3/include/bits/stl_stack.h +++ b/libstdc++-v3/include/bits/stl_stack.h @@ -171,7 +171,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION : c(std::move(__c)) { } #if __cplusplus > 202002L -#define __cpp_lib_adaptor_iterator_pair_constructor 202100L +#define __cpp_lib_adaptor_iterator_pair_constructor 202106L template> diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 66b3d1704b78..3d4a4142eec1 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -281,7 +281,7 @@ #if __cplusplus > 202002L // c++2b -#define __cpp_lib_adaptor_iterator_pair_constructor 202100L +#define __cpp_lib_adaptor_iterator_pair_constructor 202106L #define __cpp_lib_invoke_r 202106L #define __cpp_lib_is_scoped_enum 202011L #define __cpp_lib_string_contains 202011L diff --git a/libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc b/libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc index de0fc310c241..b826e745988c 100644 --- a/libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc +++ b/libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc @@ -22,7 +22,7 @@ #ifndef __cpp_lib_adaptor_iterator_pair_constructor #error Feature test macro for iterator pair constructors is missing in -#elif __cpp_lib_adaptor_iterator_pair_constructor != 202100L +#elif __cpp_lib_adaptor_iterator_pair_constructor != 202106L #error Feature test macro for iterator pair constructors has wrong value in #endif diff --git a/libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc b/libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc index 4c648926d629..ee06679d986c 100644 --- a/libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc +++ b/libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc @@ -22,7 +22,7 @@ #ifndef __cpp_lib_adaptor_iterator_pair_constructor #error Feature test macro for iterator pair constructors is missing in -#elif __cpp_lib_adaptor_iterator_pair_constructor != 202100L +#elif __cpp_lib_adaptor_iterator_pair_constructor != 202106L #error Feature test macro for iterator pair constructors has wrong value in #endif