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

Thiago Macieira thiago.macieira at intel.com
Wed Jun 19 17:22:24 CEST 2024


On Wednesday 19 June 2024 04:32:42 GMT-7 Giuseppe D'Angelo via Development 
wrote:
> 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-).

I don't see the point. Hardly anyone even knows the option is there for GCC 
and Clang, as they default to UTF-8. So it's not a problem that needs solving.

We already enforce in QCoreApplication where it matters: the setlocale() call.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Fleet Systems Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240619/0184db5e/attachment.bin>


More information about the Development mailing list