QtConcurrent
QtConcurrentMap
Both I have included.
QtConcurrent
QtConcurrentMap
Both I have included.
Last edited by ejoshva; 11th March 2015 at 09:42.
error: no matching function for call to 'mappedReduced'
QFuture<QString> decryptedContent = QtConcurrent::mappedReduced(fileList,DecryptMap('A '),ReduceS());
And there is nothing more? Nothing about candidates for the proper call or something like that?
The below warning are also found.
candidate template ignored: couldn't infer template argument 'ResultType'
QFuture<ResultType> mappedReduced(const Sequence &sequence,
^
candidate template ignored: deduced conflicting types for parameter 'Iterator' ('QList<QString>' vs. 'DecryptMap')
QFuture<ResultType> mappedReduced(Iterator begin,
^
candidate template ignored: deduced conflicting types for parameter 'Iterator' ('QList<QString>' vs. 'DecryptMap')
QFuture<typename QtPrivate::ReduceResultType<ReduceFunctor>::Result Type> mappedReduced(Iterator begin,
^
candidate template ignored: substitution failure [with Sequence = QList<QString>, MapFunctor = DecryptMap, ReduceFunctor = ReduceS]: implicit instantiation of undefined template 'QtPrivate::ReduceResultType<ReduceS>'
QFuture<typename QtPrivate::ReduceResultType<ReduceFunctor>::Result Type> mappedReduced(const Sequence &sequence,
~~~~~~~~~~~~~~~~ ^
So what are the exact signatures of fileList, DecryptA and ReduceS?
Qt Code:To copy to clipboard, switch view to plain text mode
Qt Code:
QFuture<QString> decryptedContent = QtConcurrent::mappedReduced(fileList,DecryptMap('A'),ReduceS());To copy to clipboard, switch view to plain text mode
Last edited by ejoshva; 14th March 2015 at 10:14.
Try:
Qt Code:
QFuture<QString> decryptedContent = QtConcurrent::mappedReduced<QString>(fileList,DecryptMap('A'),ReduceS());To copy to clipboard, switch view to plain text mode
ejoshva (14th March 2015)
It worked.
Bookmarks