]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators
authorFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 20 Mar 2024 05:47:20 +0000 (06:47 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 20 Mar 2024 17:59:49 +0000 (18:59 +0100)
_GLIBCXX_DEBUG has now fully N3344 compliant iterator checks, we can define
__cpp_lib_null_iterators macros like the normal mode.

libstdc++-v3/ChangeLog:

* include/bits/version.def (null_iterators): Remove extra_cond.
* include/bits/version.h: Regenerate.

libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h

index be5af18e818c7429024084b1b07210ee7a501e4a..26e62c6a9b2a0e550aa274f30fdd7e6ac495d7a9 100644 (file)
@@ -209,7 +209,6 @@ ftms = {
   values = {
     v = 201304;
     cxxmin = 14;
-    extra_cond = "!defined(_GLIBCXX_DEBUG)";
   };
 };
 
index 9107b45a4841f2b2914ea6847dc896774fc95722..23c8c09ab4bf88b6b5e345077fd26ab8f1e1cf7f 100644 (file)
 #undef __glibcxx_want_make_reverse_iterator
 
 #if !defined(__cpp_lib_null_iterators)
-# if (__cplusplus >= 201402L) && (!defined(_GLIBCXX_DEBUG))
+# if (__cplusplus >= 201402L)
 #  define __glibcxx_null_iterators 201304L
 #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_null_iterators)
 #   define __cpp_lib_null_iterators 201304L