From c4771bcaa3c91ba6cbc9ca27307a886c11d09a4d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 14 Jan 2025 17:47:15 -0700 Subject: [PATCH] Explicitly provide template arguments. --- bundled/taskflow-3.10.0/taskflow/core/async.hpp | 3 ++- bundled/taskflow-3.10.0/taskflow/core/runtime.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bundled/taskflow-3.10.0/taskflow/core/async.hpp b/bundled/taskflow-3.10.0/taskflow/core/async.hpp index 4e4914406d..95fd6b0559 100644 --- a/bundled/taskflow-3.10.0/taskflow/core/async.hpp +++ b/bundled/taskflow-3.10.0/taskflow/core/async.hpp @@ -210,7 +210,8 @@ auto Executor::dependent_async(P&& params, F&& func, I first, I last) { // async without runtime: [] () {} else if constexpr(std::is_invocable_v) { - std::packaged_task p(std::forward(func)); + using R = std::invoke_result_t; + std::packaged_task p(std::forward(func)); auto fu{p.get_future()}; AsyncTask task(animate( diff --git a/bundled/taskflow-3.10.0/taskflow/core/runtime.hpp b/bundled/taskflow-3.10.0/taskflow/core/runtime.hpp index a60d1dc654..2634657af1 100644 --- a/bundled/taskflow-3.10.0/taskflow/core/runtime.hpp +++ b/bundled/taskflow-3.10.0/taskflow/core/runtime.hpp @@ -552,7 +552,8 @@ auto Executor::_async(P&& params, F&& f, Topology* tpg, Node* parent) { } // async task with closure: [] () { ... } else if constexpr (std::is_invocable_v){ - std::packaged_task p(std::forward(f)); + using R = std::invoke_result_t; + std::packaged_task p(std::forward(f)); auto fu{p.get_future()}; _schedule_async_task(animate( std::forward

(params), tpg, parent, 0, -- 2.39.5