From bdc34bfb8e4fc696192d0df511ca6acad6a0a272 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 26 Oct 2020 13:53:50 +0100 Subject: Compile fix on Windows Task-number: QTBUG-87719 Change-Id: I9dd12b4579b40ec9c91a5751e12d371ed6ff5ac4 Reviewed-by: Giuseppe D'Angelo --- src/concurrent/qtconcurrentstoredfunctioncall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/concurrent/qtconcurrentstoredfunctioncall.h') diff --git a/src/concurrent/qtconcurrentstoredfunctioncall.h b/src/concurrent/qtconcurrentstoredfunctioncall.h index f7e9e03e21c..1257d70b829 100644 --- a/src/concurrent/qtconcurrentstoredfunctioncall.h +++ b/src/concurrent/qtconcurrentstoredfunctioncall.h @@ -66,7 +66,7 @@ struct NonMemberFunctionResolver static_assert(std::is_void_v, QPromise &, std::decay_t...>>, "The function must return void type."); - static constexpr decltype (auto) invokePointer() + static constexpr auto invokePointer() { return &std::invoke, QPromise &, std::decay_t...>; } @@ -88,7 +88,7 @@ struct MemberFunctionResolver static_assert(std::is_void_v, std::decay_t, QPromise &, std::decay_t...>>, "The function must return void type."); - static constexpr decltype (auto) invokePointer() + static constexpr auto invokePointer() { return &std::invoke, std::decay_t, QPromise &, std::decay_t...>; } -- cgit v1.2.3