From 0c40011d1844f12976343b3a53b55540fcb8d9ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:49:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gmlc/libguarded/deferred_guarded.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gmlc/libguarded/deferred_guarded.hpp b/gmlc/libguarded/deferred_guarded.hpp index 5c950d4..ee32a2a 100644 --- a/gmlc/libguarded/deferred_guarded.hpp +++ b/gmlc/libguarded/deferred_guarded.hpp @@ -194,10 +194,9 @@ auto call_returning_future(Func& func, T& data) -> } template -auto package_task_void(Func&& func) -> - typename std::enable_if< - std::is_same::value, - std::pair>, std::future>>::type +auto package_task_void(Func&& func) -> typename std::enable_if< + std::is_same::value, + std::pair>, std::future>>::type { auto vtask = std::unique_ptr>(new void_runner( std::packaged_task(std::forward(func)))); @@ -206,10 +205,9 @@ auto package_task_void(Func&& func) -> } template -auto package_task_void(Func&& func) -> - typename std::enable_if< - !std::is_same::value, - std::pair>, std::future>>::type +auto package_task_void(Func&& func) -> typename std::enable_if< + !std::is_same::value, + std::pair>, std::future>>::type { auto ttask = std::unique_ptr>(new type_runner( std::packaged_task(std::forward(func))));