From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 4/4] Remove operator== and operator!= from gdb::span
Date: Wed, 11 Nov 2026 11:30:36 -0500 [thread overview]
Message-ID: <8b0f0631-8216-4ce7-bf3d-c3b9df375f1b@simark.ca> (raw)
In-Reply-To: <87o6bvbal4.fsf@tromey.com>
On 2026-11-11 11:24, Tom Tromey wrote:
> Simon> While at it (as another patch), we could move
> Simon> gdb::ranges::views::enumerate to ranges.h as well. Basically all the
> Simon> functions that are a backport of <ranges>.
>
>>> Someone else will have to do this, v2 of this series is already long.
>
> Simon> I don't mind doing it once the dust settles.
>
> The other thing I've been doing is changing these files to use the std::
> versions when __cplusplus allows for it. I think this should probably
> be required for future shims. Or at least future c++20 shims, I'm less
> sure about whether we want to commit to c++23 stuff yet, I don't even
> know if gdb can be built in that mode.
Note that we could also just use this:
https://github.com/nonstd-lite/span-lite/
It does the "use std::span if available" thing by default, although you
can change it via a macro. It's one header file to drop in gdbsupport,
works well, I've used it (along with other "nonstd-lite" polyfills) in
other projects. License is compatible.
Simon
next prev parent reply other threads:[~2026-11-11 16:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 19:18 [PATCH 0/4] Rename gdb::array_view to gdb::span Tom Tromey
2026-11-03 19:18 ` [PATCH 1/4] Rename array_view files Tom Tromey
2026-11-10 20:07 ` Simon Marchi
2026-11-10 20:34 ` Tom Tromey
2026-11-10 20:37 ` Simon Marchi
2026-11-03 19:18 ` [PATCH 2/4] Rename gdb::array_view to gdb::span Tom Tromey
2026-11-03 19:18 ` [PATCH 3/4] Rename gdb::make_array_view to gdb::make_span Tom Tromey
2026-11-03 19:18 ` [PATCH 4/4] Remove operator== and operator!= from gdb::span Tom Tromey
2026-11-10 20:03 ` Simon Marchi
2026-11-10 20:28 ` Simon Marchi
2026-11-11 15:29 ` Tom Tromey
2026-11-11 15:46 ` Simon Marchi
2026-11-11 16:24 ` Tom Tromey
2026-11-11 16:30 ` Simon Marchi [this message]
2026-11-11 17:18 ` Tom Tromey
2026-11-11 17:19 ` Tom Tromey
2026-11-04 14:22 ` [PATCH 0/4] Rename gdb::array_view to gdb::span Tom Tromey
2026-11-10 20:29 ` Simon Marchi
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=8b0f0631-8216-4ce7-bf3d-c3b9df375f1b@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.com \
/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