[Development] Raising the minimum to C++20

Thiago Macieira thiago.macieira at intel.com
Sat Feb 10 08:04:20 CET 2024


On Friday, 9 February 2024 06:45:30 PST Volker Hilsheimer via Development 
wrote:
> The 3 big C++20 features people ask us about are modules, co-routines, and
> concepts. We have no compelling answers here. You can’t build Qt into a set
> of modules; we have no APIs using co-routines; none of our template
> constraints are expressed, or at least documented, as concepts, and there
> is no draft of a concept library for things that might be interesting for
> Qt users.

This change requires one concept:
https://codereview.qt-project.org/c/qt/qtbase/+/536993/7

I added a fallback to C++17. I make no promises that it has the same level of 
compatibility as the C++20 official concept. In fact, I know it doesn't. It will 
reject some types and accept others that it shouldn't.

That's QHash. That means we need to be sure we won't cause problems for 
existing users. I have absolutely no problem in making this feature only 
accessible in C++20, if need be.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud 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/20240209/901be763/attachment.bin>


More information about the Development mailing list