C++ Logo


Advanced search

Subject: Re: P2362R0 Make obfuscating wide character literals ill-formed
From: Giuseppe D'Angelo (giuseppe.dangelo_at_[hidden])
Date: 2021-04-14 13:50:26


Il 14/04/21 18:04, Peter Brett via SG16 ha scritto:
> Good suggestions. I’ve expanded and revised the paper to include a
> discussion of clang & gcc behaviour with -fshort-wchar.

Pedantically, could it be possible to arrange the table so to know
what's sizeof(wchar_t) for each entry?

-fshort-wchar makes a difference only if the default size of wchar_t for
the target platform wouldn't already be ushort. Otherwise, it doesn't
make a difference (e.g. GCC/Clang targeting Windows)...?


Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

SG16 list run by sg16-owner@lists.isocpp.org