C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D4039R0 Sequential hexadecimal digits

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Sat, 28 Feb 2026 17:54:00 +0000
On Sat, 28 Feb 2026, 09:05 Jan Schultke, <janschultke_at_[hidden]> wrote:

> Hi,
>
> https://isocpp.org/files/papers/D4039R0.html
>
> In the recent discussion of D4040R0, it was brought up that C2y now
> provides the guarantee that hexadecimal digit characters are contiguous.
> This was done by
> https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3192%2epdf
>
> I've drafted up a proposal that adopts that guarantee into C++. Feedback
> is welcome.
>
> I expect we can make this a DR against C++98 and pretend it's always been
> guaranteed.
>

Yes, I agree.

The wording in your draft could be misinterpreted to mean that
0123456789ABCDEFabcdef is a single contiguous range.

>

Received on 2026-02-28 17:54:15