C++ Logo

sg16

Advanced search

Re: [SG16] P2362R0 Make obfuscating wide character literals ill-formed

From: Corentin Jabot <corentinjabot_at_[hidden]>
Date: Wed, 14 Apr 2021 16:15:50 +0200
On Wed, Apr 14, 2021 at 4:07 PM Peter Bindels <peterbindels_at_[hidden]>
wrote:

> Then I have the inverse problem, now we create code that is conditionally
> portable, and only ill-formed on Windows. That's horrible.
>

How is that worse that code that is well-formed everywhere but does the
wrong thing on windows?
wchar_t was never portable


>
> On Wed, 14 Apr 2021 at 15:55, Corentin Jabot <corentinjabot_at_[hidden]>
> wrote:
>
>>
>>
>> On Wed, Apr 14, 2021 at 3:49 PM Peter Bindels via SG16 <
>> sg16_at_[hidden]> wrote:
>>
>>> Please explain how that facepalm is now illegal on Unix, where wchar_t
>>> is 32 bit and it clearly fits.
>>>
>>
>> It's only ill-formed if it doesn't fit!
>>
>>
>>>
>>> On Wed, 14 Apr 2021 at 15:27, Peter Brett via SG16 <
>>> sg16_at_[hidden]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Corentin and I have authored
>>>> https://isocpp.org/files/papers/P2362R0.pdf, which will be in the
>>>> April mailing. This addresses
>>>> https://github.com/sg16-unicode/sg16/issues/65.
>>>>
>>>> Best regards,
>>>>
>>>> Peter
>>>> --
>>>> SG16 mailing list
>>>> SG16_at_[hidden]
>>>> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>>>>
>>> --
>>> SG16 mailing list
>>> SG16_at_[hidden]
>>> https://lists.isocpp.org/mailman/listinfo.cgi/sg16
>>>
>>

Received on 2021-04-14 09:16:04