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

Tom Honermann tom at honermann.net
Fri Jan 25 04:48:31 CET 2019


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.



More information about the Unicode mailing list