[Development] Switching Qt default builds to C++20 where supported
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Mon Oct 14 17:46:28 CEST 2024
On 14/10/2024 16:56, Vladimir Minenko via Development wrote:
>
>> Effectively, I don't see much difference from the current situation,
>> where we "pretend" that we require C++17 but in reality we just check
>> that we can pass `-std=c++17` to the compiler. Any usage in Qt code of
>> individual language/library features still requires protection,
>> because they're not universally implemented.
>
> And because of this, I once asked to set up a nightly build with
> forced `-std=c++17`, e.g.
> https://testresults.qt.io/coin/integration/qt/qtbase/tasks/nightly1728750903 <https://testresults.qt.io/coin/integration/qt/qtbase/tasks/nightly1728750903>. We already had two cases when C++20-specific code was merged and the build failed only because of this. There is a notification email set on failures for this build. There are only people from The Qt Company so far on it. If someone else is interested, I would gladly change this and include other people ;-)
Do you mean that, before your request, *all* the builds were forcing C++20?
It used to be the other way around: people commit C++17 code that breaks
under C++20, and the lack of C++20 coverage in the CI would allow it,
only to break on those developers who force 20-or-above locally.
Thanks,
--
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/20241014/8145a018/attachment-0001.bin>
More information about the Development
mailing list