Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 95d182c commit 3bcbfbf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions gmlc/libguarded/deferred_guarded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ auto call_returning_future(Func& func, T& data) ->
}

template<typename Ret, typename T, typename Func>
auto package_task_void(Func&& func) ->
typename std::enable_if<
std::is_same<Ret, void>::value,
std::pair<std::unique_ptr<task_runner<T>>, std::future<void>>>::type
auto package_task_void(Func&& func) -> typename std::enable_if<
std::is_same<Ret, void>::value,
std::pair<std::unique_ptr<task_runner<T>>, std::future<void>>>::type
{
auto vtask = std::unique_ptr<void_runner<T>>(new void_runner<T>(
std::packaged_task<void(T&)>(std::forward<Func>(func))));
Expand All @@ -206,10 +205,9 @@ auto package_task_void(Func&& func) ->
}

template<typename Ret, typename T, typename Func>
auto package_task_void(Func&& func) ->
typename std::enable_if<
!std::is_same<Ret, void>::value,
std::pair<std::unique_ptr<task_runner<T>>, std::future<Ret>>>::type
auto package_task_void(Func&& func) -> typename std::enable_if<
!std::is_same<Ret, void>::value,
std::pair<std::unique_ptr<task_runner<T>>, std::future<Ret>>>::type
{
auto ttask = std::unique_ptr<type_runner<T, Ret>>(new type_runner<T, Ret>(
std::packaged_task<Ret(T&)>(std::forward<Func>(func))));
Expand Down

0 comments on commit 3bcbfbf

Please sign in to comment.