Qt 6.11 is out! See what's new in the release
blog
QtConcurrent::Mapped returns QFuture<void>
-
-
I have a QList<T*> and my map functions takes T* and returns an object of U type, I don't understand why when calling QtConcurrent::Mapped returns QFuture<void> shouldn't it return QFuture<U>?. How is the return type of QtConcurrent::Mapped decided?
-
QList<T*> list = .... auto mapFunction = [std::biset<10U> bitset](const T* t)->U {return t->someFunction(bitset);} //someFunction() return U QFuture<U> futures = QtConcurrent::mapped(list,mapFunction) -
Can you test it temporary with a static function and /or const ref instead pointer? What MSVC compiler do you use?