[Development] QThread::create mandatory in Qt 6?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sat Nov 14 12:05:13 CET 2020


Il 14/11/20 04:51, Thiago Macieira ha scritto:
> QThread::create is still behind a few #ifdefs in Qt 6. It requires:
> 1) a configure-time check for C++11 std::future and std::async
> 2) a compile-time check for C++14 std::invoke and some C++14 language features
> #1 enables the create() function at all; #2 enables the ability to pass a
> callable that takes argumentst and those extra arguments to create() .
> During Qt 5 that made sense because we only required C++11. Qt 6 requires
> C++17 core language. Do we also want to require C++17 standard library? Or at
> least the C++14 standard library? Or even the C++11 library?

2) was removed in https://codereview.qt-project.org/c/qt/qtbase/+/306811 
, or are you referring to something else? Was it a mistake to remove it?

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 - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20201114/ea053408/attachment.bin>

More information about the Development mailing list