[Development] std::format support for Qt string types

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Jun 19 13:32:42 CEST 2024


Hi,

On 19/06/2024 11:23, Alexey Edelev via Development wrote:
> 
> Hi,
> 
> I have a side question for this discussion(raised by Ivan in personal 
> conversation): Should we also force the -fexec-charset= for the gcc-like 
> compilers? Currently we use the system default one, which in most cases 
> is UTF-8.

I wouldn't say "force", but we could certainly check for it. We depend 
on that: we assume that string literals in our headers are UTF-8 encoded.

I it worth it though? Since we're talking about user code, this would 
mean a static_assert in a global header. (There's some precedent for 
this, like the check for /permissive-).

My 2 c,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | 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 - Trusted Software Excellence

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240619/9ddef7a2/attachment.bin>


More information about the Development mailing list