public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Francois Dumont <fdumont@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r13-8472] libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators
Date: Wed, 20 Mar 2024 18:08:56 +0000 (GMT)	[thread overview]
Message-ID: <20240320180856.61CAF3858D28@sourceware.org> (raw)

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

                 reply	other threads:[~2024-03-20 18:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240320180856.61CAF3858D28@sourceware.org \
    --to=fdumont@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).