C++ Logo

sg16

Advanced search

Re: [SG16] Just realized that the UCN is not a single character

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Wed, 8 Apr 2020 23:38:40 +0200
On 08/04/2020 23.27, Hubert Tong via SG16 wrote:
> Seems GCC is right again...
>
> \u0300, whether the result of forming a UCN or physically present as a UCN is a string of six characters from the basic source character set...

So, it's six characters, so

#define accent(x) x ## \u0300

becomes


#define accent(x) x ## \ u0300

with \ a lone character and u0300 a separate preprocessing-token / identifier.

Disturbing UCNs like that is really counter-intuitive.
We should fix that.

Jens

Received on 2020-04-08 16:41:37