Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11
-
None
Description
According to a discussion on Freenode/#qt-labs on 09042018 1428 CEST:
http://doc.qt.io/qt-5/qtconcurrentmap.html <- the lambda example does not compile
the error is it can't convert QFuture<void> to QFuture<QImage> or whatever result_type is
it only works if you wrap the lambda into a std::function<T(T)>
Known issue:
- https://bugreports.qt.io/browse/QTBUG-33735
QtConcurrent::mapped doesn't work with C++11 lambdaseven with the bug being open for 5 years, at least the docs should have working
examples
Attachments
Issue Links
- relates to
-
QTBUG-61145 QtConcurrent::blockingMappedReduced cannot deduce mapped type
-
- Closed
-
-
QTBUG-33735 QtConcurrent::mapped doesn't work with C++11 lambdas
-
- Closed
-