C++ Logo


Advanced search

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

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Fri, 29 Oct 2021 20:35:35 +0200
On 29/10/2021 18.10, Hubert Tong wrote:
> On Fri, Oct 29, 2021 at 11:31 AM Hubert Tong <hubert.reinterpretcast_at_[hidden] <mailto:hubert.reinterpretcast_at_[hidden]>> wrote:
> On Fri, Oct 29, 2021 at 4:13 AM Corentin <corentin.jabot_at_[hidden] <mailto:corentin.jabot_at_[hidden]>> wrote:
> On Fri, Oct 29, 2021 at 9:52 AM Jens Maurer <Jens.Maurer_at_[hidden] <mailto: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.

Good point.

By the way, P2361 needs to be rebased on the current working draft.
The [lex.string] changes about the terminating null character are
already in.


Received on 2021-10-29 13:35:42