Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.0, 4.6.1, 4.6.2
-
None
-
0ba0c374fe055623381e3795daa6743c5c995bbc
Description
Qt Concurrent is disabled on Symbian builds by configure.exe adding QT_NO_CONCURRENT and QT_NO_QFUTURE to qconfig.h
If it is enabled, QtCore compiles with no errors, and some of the auto tests compile and pass.
When compiling the autotests that use the templated classes, there are errors such as these:
tst_qtconcurrentmap.cpp:115: warning: illegal empty declaration tst_qtconcurrentmap.cpp:844: ambiguous access to overloaded function tst_qtconcurrentmap.cpp:844: 'QtConcurrent::blockingMapped<QList<int>, QList<int>::const_iterator, int (*)(int)>(QList<int>::const_iterator, QList<int>::const_iterator, int (*)(int))' tst_qtconcurrentmap.cpp:844: 'QtConcurrent::blockingMapped<QList<int>, QList<int>::const_iterator, int, int>(QList<int>::const_iterator, QList<int>::const_iterator, int (*)(int))' tst_qtconcurrentmap.cpp:859: ambiguous access to overloaded function tst_qtconcurrentmap.cpp:859: 'QtConcurrent::blockingMapped<QLinkedList<int>, QLinkedList<int>::const_iterator, int (*)(int)>(QLinkedList<int>::const_iterator, QLinkedList<int>::const_iterator, int (*)(int))' tst_qtconcurrentmap.cpp:859: 'QtConcurrent::blockingMapped<QLinkedList<int>, QLinkedList<int>::const_iterator, int, int>(QLinkedList<int>::const_iterator, QLinkedList<int>::const_iterator, int (*)(int))'
The same error occurs with both compilers - although the error message is written differently
"C:\S60\qt\qt\tests\auto\qtconcurrentmap\tst_qtconcurrentmap.cpp", line 1122: Error: #308: more than one instance of overloaded function "QtConcurrent::blockingMapped" matches the argument list: function template "QtConcurrent::blockingMapped<Sequence,Iterator,MapFunctor>(Iterator, Iterator, MapFunctor)" function template "QtConcurrent::blockingMapped<Sequence,Iterator,T,U>(Iterator, Iterator, T (*)(U))" argument types are: (QList<QString>::const_iterator, QList<QString>::const_iterator, int (const QString &)) QList<int> list2 = QtConcurrent::blockingMapped<QList<int> >(strings.constBegin(), ^
Attachments
Issue Links
- depends on
-
QTBUG-5182 Support for QFuture and QtConcurrent in Symbian
-
- Closed
-