Details
-
Epic
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
-
None
-
C++20 CTAD @ Qt
Description
C++20 added support for CTAD (https://en.cppreference.com/w/cpp/language/class_template_argument_deduction) for
- aggregates (__cpp_deduction_guides >= 201907L)
- aliases (__cpp_deduction_guides >= 201907L)
The first is not really interesting, because we can emulate it using user-defined deduction guides, and we'd get the same result in C++17 and C++20. Once we can depend on C++20, I expect more classes to become simple structs as a result of this change, designated initializers (QTBUG-104153) and __cpp_aggregate_paren_init (QTBUG-104154).
The second is interesting for our users, but doesn't affect our APIs.
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
- relates to
-
QTBUG-104153 Impact of C++20 designated initializers on our code
- Open
-
QTBUG-104154 Impact of C++20 aggregate init with parentheses on our code
- Open