Details
-
Epic
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
C++20 concepts @ Qt
Description
C++20 added "Concepts Lite", a reduced version of "Concepts TS", itself a reduced version of the concepts that were, for a while, in C++11, before being yanked out at the last moment.
The impact of concepts on Qt has several axes:
- Qt types should model corresponding std concepts where it makes sense. This should be checked at compile-time in the type's respective unit-test, and it should be documented (ex: QMutex models std::basic_lockable).
- Qt function and class templates may want to constrain their template arguments (and document that) using either
- ad-hoc concepts: these concepts are completely self-defined without help from the std header <concepts>, which means they can be used in C++17, too (with std::enable_if). There's a danger here that each library will do the same thing and we get a world of NIH concepts, though.
- (directly or indirectly) std concepts
- ...
Attachments
Issue Links
- is required for
-
QTBUG-99243 Initiative: Qt and C++20
- Open
-
QTBUG-109362 C++20 is mandatory for users of Qt (Phase III)
- Open
-
QTBUG-109360 Use C++20 code with Qt (Phase I)
- Open
- relates to
-
QTBUG-88449 [spike] More helpful compiler errors when using QtConcurrent
- Closed