From: Wolfgang Bangerth Date: Wed, 15 Jan 2025 00:47:15 +0000 (-0700) Subject: Explicitly provide template arguments. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4771bcaa3c91ba6cbc9ca27307a886c11d09a4d;p=dealii.git Explicitly provide template arguments. --- 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,