C++ Logo

sg16

Advanced search

Re: [SG16] Feedback on P1854: Conversion to literal encoding should not lead to loss of meaning

From: Hubert Tong <hubert.reinterpretcast_at_[hidden]>
Date: Fri, 29 Oct 2021 12:10:03 -0400
On Fri, Oct 29, 2021 at 11:31 AM Hubert Tong <
hubert.reinterpretcast_at_[hidden]> wrote:

> On Fri, Oct 29, 2021 at 4:13 AM Corentin <corentin.jabot_at_[hidden]> wrote:
>
>>
>> On Fri, Oct 29, 2021 at 9:52 AM Jens Maurer <Jens.Maurer_at_[hidden]> wrote:
>>
>>> Insofar, I consider P2361 superfluous.
>>>
>>
> Aside from P2361's intentional changes, it highlights the fact that
> diagnosable rules and semantics around string literals are underspecified
> in contexts where strings are not used to initialize a string literal
> object. It was rather easier to (intentionally) squint at the wording the
> other way before.
>

And P2361 does fix the issue over whether
static_assert(true, "\512");

is valid.

Received on 2021-10-29 11:10:32