C++ Logo

sg16

Advanced search

Re: [SG16-Unicode] Draft: char8_t backward compatibility remediation paper

From: Tom Honermann <tom_at_[hidden]>
Date: Thu, 24 Jan 2019 22:48:31 -0500
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.

Received on 2019-01-25 04:56:47