Details
-
Epic
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
-
None
-
C++20 lambdas @ Qt
Description
TL;DR: uninteresting until we depend on C++20
C++20 added more feature to lambda functions:
- optional template-initializer (__cpp_generic_lambdas >= 201707L)
- pack-expansion in init captures (__cpp_init_captures >= 201803L)
- lambdas can appear in unevaluated contexts:
std::unique_ptr<FILE, decltype([](FILE *f) { fclose(f); })> file(fopen(~~~));
- stateless ones are default-constructible and assignable
There's nothing we can do with these until we depend on C++20. When we do, these features will be useful in the implementation of Qt; I don't see an impact on our APIs atm.
Attachments
Issue Links
- is required for
-
QTBUG-99243 Initiative: Qt and C++20
- Open
-
QTBUG-109361 C++20 is required for the development and building of Qt itself (Phase II)
- Open