public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8472] libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators
@ 2024-03-20 18:08 Francois Dumont
0 siblings, 0 replies; only message in thread
From: Francois Dumont @ 2024-03-20 18:08 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:4cc3cdcb7ed8e813c6fe9d18c1ac5a235eb7077d
commit r13-8472-g4cc3cdcb7ed8e813c6fe9d18c1ac5a235eb7077d
Author: François Dumont <fdumont@gcc.gnu.org>
Date: Wed Mar 20 06:47:20 2024 +0100
libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators
_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/std/iterator (__cpp_lib_null_iterators): Define regardless of
_GLIBCXX_DEBUG.
* include/std/version (__cpp_lib_null_iterators): Likewise.
Diff:
---
libstdc++-v3/include/std/iterator | 2 +-
libstdc++-v3/include/std/version | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/libstdc++-v3/include/std/iterator b/libstdc++-v3/include/std/iterator
index 695e18e2c47..a0a8eac570b 100644
--- a/libstdc++-v3/include/std/iterator
+++ b/libstdc++-v3/include/std/iterator
@@ -67,7 +67,7 @@
#endif
#include <bits/range_access.h>
-#if __cplusplus >= 201402L && ! defined _GLIBCXX_DEBUG // PR libstdc++/70303
+#if __cplusplus >= 201402L
# define __cpp_lib_null_iterators 201304L
#endif
diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version
index bd1bee0190d..ee515c4e66c 100644
--- a/libstdc++-v3/include/std/version
+++ b/libstdc++-v3/include/std/version
@@ -81,9 +81,7 @@
#define __cpp_lib_integral_constant_callable 201304L
#define __cpp_lib_is_final 201402L
#define __cpp_lib_make_reverse_iterator 201402L
-#ifndef _GLIBCXX_DEBUG // PR libstdc++/70303
-# define __cpp_lib_null_iterators 201304L
-#endif
+#define __cpp_lib_null_iterators 201304L
#define __cpp_lib_robust_nonmodifying_seq_ops 201304L
#define __cpp_lib_transformation_trait_aliases 201304L
#define __cpp_lib_transparent_operators 201510L
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-20 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-20 18:08 [gcc r13-8472] libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators Francois Dumont
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).