Fix MSVC 2013 compilation issues

This commit is contained in:
Simon Brunel
2017-09-04 00:20:53 +02:00
parent 0682269d8f
commit 931d5d5b13
8 changed files with 72 additions and 18 deletions

View File

@ -262,7 +262,7 @@ void tst_future::fail()
auto input = QPromise<QString>::reject(MyException("bar"));
auto output = input.fail([](const MyException& e) {
return QtConcurrent::run([=]() {
return QString("foo") + e.error();
return QString("foo%1").arg(e.error());
});
});