[Development] Switching Qt default builds to C++20 where supported

Thiago Macieira thiago.macieira at intel.com
Sun Aug 16 03:21:34 CEST 2026


On Thursday, 10 October 2024 09:57:23 Pacific Daylight Time Thiago Macieira 
wrote:
> Re: https://codereview.qt-project.org/c/qt/qtbase/+/463425
> 
> TL;DR: for some std::format functionality, we really want to have
> out-of-line implementations, which requires QtCore compiled with C++20. See
> https://codereview.qt-project.org/c/qt/qtbase/+/595309/2/src/corelib/text/
> qstring.cpp for the thinking. Let's focus first on the C++ language, because
> the ABI discussion is irrelevant if we don't do this.
> 
> So I'd like to propose that we switch all Qt builds to C++20 by default
> where the compilers support it and have supported it for years, but not
> require it for platforms where either the compiler or the standard library
> are unable to compile in C++20 mode.


This news is a few months old, but I've just noticed it:

GCC 16 has switched to C++20 by default. That indicates GCC thinks it is 
feature-complete for it.
https://gcc.gnu.org/gcc-16/changes.html#cxx

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCG - Platform & Sys. Eng.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5176 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20260815/82424f3b/attachment.bin>


More information about the Development mailing list