From 8d036189152b7d05197b36d9a0832609b3db6884 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:07:35 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/pre-commit/mirrors-clang-format: v18.1.8 → v19.1.6](https://github.com/pre-commit/mirrors-clang-format/compare/v18.1.8...v19.1.6) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e03782d..71bed99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: exclude: ^(test/|units/|docs/reference/) args: [-L ThirdParty] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: mixed-line-ending @@ -47,7 +47,7 @@ repos: - id: debug-statements - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.8 + rev: v19.1.6 hooks: - id: clang-format types: From da93f5941bac4669a160f1598754c2dafa3b6389 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:07:55 +0000 Subject: [PATCH 2/2] [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))));