C++ Logo

SG16

Advanced search

Subject: Re: [SG16-Unicode] Draft: char8_t backward compatibility remediation paper
From: Tom Honermann (tom_at_[hidden])
Date: 2019-01-24 21:48:31


On 1/24/19 6:25 PM, Lyberta wrote:
> Tom Honermann:
>> Attached is the revision that was submitted for the Kona pre-meeting
>> mailing.  My apologies for not getting this out sooner.
>>
>> Tom.
> How about extending std::to_integer so developers wouldn't need to
> invent casts to print code units and string literals?
>
> std::cout << std::to_integer(u8'x');
> std::cout << std::to_integer(u8"Hello");

I'm not following.  std::to_integer is (currently, unless I missed a
proposal) only overloaded to provide the value of a std::byte as an
integral type.  I don't understand the motivation here, nor the
association with the char8_t remediation paper.

Tom.


SG16 list run by sg16-owner@lists.isocpp.org