Proposal: allow std::byteswap from C++23

30 views
Skip to first unread message

David Benjamin

unread,
Jan 5, 2026, 6:31:16 PM (4 days ago) Jan 5
to cxx
This is hopefully a pretty easy one: C++23 adds std::byteswap. We have base::ByteSwap. Let's use the standard spelling!

There were few enough uses that I was able to just migrate the lot of it in one go:
https://chromium-review.googlesource.com/c/chromium/src/+/7397193

David

Mark Mentovai

unread,
Jan 5, 2026, 6:35:53 PM (4 days ago) Jan 5
to David Benjamin, cxx
Non-controversial and LGTM!

--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF8qwaA99yMX4biHqLxQQdEy_KTyt-dqRRcioUXX3hC%2B90QXFQ%40mail.gmail.com.

Elly

unread,
Jan 5, 2026, 7:26:20 PM (4 days ago) Jan 5
to Mark Mentovai, David Benjamin, cxx

Avi Drissman

unread,
Jan 6, 2026, 10:36:28 AM (4 days ago) Jan 6
to Elly, Mark Mentovai, David Benjamin, cxx

Nico Weber

unread,
Jan 6, 2026, 10:39:30 AM (4 days ago) Jan 6
to Avi Drissman, Elly, Mark Mentovai, David Benjamin, cxx
I went ahead and lg'd the CL, since this looks very uncontroversial :)

Reply all
Reply to author
Forward
0 new messages