]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Update __cpp_lib_adaptor_iterator_pair_constructor value
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Oct 2021 19:16:47 +0000 (20:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 5 Oct 2021 08:35:46 +0000 (09:35 +0100)
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.

libstdc++-v3/include/bits/stl_queue.h
libstdc++-v3/include/bits/stl_stack.h
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/23_containers/queue/cons_from_iters.cc
libstdc++-v3/testsuite/23_containers/stack/cons_from_iters.cc

index 3da65c78eb80fafd7b6ac10af2fd75e7ae832074..68cfe865147c5255502ee453a7a796e073d48333 100644 (file)
@@ -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<typename _InputIterator,
               typename = _RequireInputIter<_InputIterator>>
index f04fa6af47984e9e8bc90ffb1f64777661ea9a96..429743f5514ced29b266944f44abd3c5ad5bf71c 100644 (file)
@@ -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<typename _InputIterator,
               typename = _RequireInputIter<_InputIterator>>
index 66b3d1704b78101fa8a47c14396dfa0856e5f215..3d4a4142eec1684ba1d78e41f4dc15c6dc41d458 100644 (file)
 
 #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
index de0fc310c241c5d288ac20c32800d9a3ecb2c4f1..b826e745988ce6d34fb362e9d9e59b69c5ce7cd1 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef __cpp_lib_adaptor_iterator_pair_constructor
 #error Feature test macro for iterator pair constructors is missing in <queue>
-#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 <queue>
 #endif
 
index 4c648926d629c2a11f09d18b541d942fb0a4c98d..ee06679d986ca286b020f9f1bdce3f072731c1d1 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef __cpp_lib_adaptor_iterator_pair_constructor
 #error Feature test macro for iterator pair constructors is missing in <stack>
-#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 <stack>
 #endif