From 92b545807f49e6f38c8ce174165d3fd334f3a9b4 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 16 Feb 2015 15:47:43 +0100 Subject: [PATCH] Utils: fix QtConcurrent::run(std::function) The std::function template parameter must be the same for run and StoredInterfaceFunctionCall0. Otherwise gcc 4.9.1-19 yields errors. Change-Id: I9d4af89320cebd33451d5643ec3d7af08595a786 Reviewed-by: Daniel Teske --- src/libs/utils/runextensions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/runextensions.h b/src/libs/utils/runextensions.h index b47704c13ed..0bf0d94b7b9 100644 --- a/src/libs/utils/runextensions.h +++ b/src/libs/utils/runextensions.h @@ -424,7 +424,7 @@ QFuture run(void (Class::*fn)(QFutureInterface &, Arg1, Arg2, Arg3, Arg4, template QFuture run(const std::function &)> &fn) { - return (new StoredInterfaceFunctionCall0)>>(fn))->start(); + return (new StoredInterfaceFunctionCall0 &)>>(fn))->start(); } } // namespace QtConcurrent