forked from qt-creator/qt-creator
Utils: Replace use of deprecated result_of_t
Fixes MSVC warnings. Change-Id: Id9b44c211a29e2bc1776a8d341a16b5bb2e8d75e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
9c6df2f832
commit
203a3138b6
@@ -261,7 +261,7 @@ void runAsyncQFutureInterfaceDispatch(std::true_type, QFutureInterface<ResultTyp
|
||||
template <typename ResultType, typename Function, typename... Args>
|
||||
void runAsyncQFutureInterfaceDispatch(std::false_type, QFutureInterface<ResultType> futureInterface, Function &&function, Args&&... args)
|
||||
{
|
||||
runAsyncReturnVoidDispatch(std::is_void<std::result_of_t<Function(Args...)>>(),
|
||||
runAsyncReturnVoidDispatch(std::is_void<std::invoke_result_t<Function, Args...>>(),
|
||||
futureInterface, std::forward<Function>(function), std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user