[Interest] Compile error: with QtConcurrent and GCC 4.8.3 and Qt 5.3.2
Thiago Macieira
thiago.macieira at intel.com
Mon May 18 09:34:51 CEST 2015
On Wednesday 13 May 2015 16:22:25 Richard Öhlinger wrote:
> QStringList data;
> QString res = QtConcurrent::blockingFilteredReduced(data,
> [](const QString&) {return true;}, [](QString& result, const QString& s)
> -> void {result = s;});
Some QtConcurrent overloads have a design flaw. You need to specify the
argument one template parameter containing the type of the reduction.
QString res = QtConcurrent::blockingFilteredReduced<QString>(...);
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list