From 932f4cdc07c0d5894621f51ad45b286e6c2e4415 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Oct 2022 18:14:48 +0100 Subject: Latest clang-formatting --- lib/collection.hpp | 3 ++- lib/stream_support.hpp | 4 ++-- lib/worker.h | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/collection.hpp b/lib/collection.hpp index 4a54124..65d72f3 100644 --- a/lib/collection.hpp +++ b/lib/collection.hpp @@ -16,7 +16,8 @@ public: template auto - create(Params &&... params) requires std::is_base_of_v + create(Params &&... params) + requires std::is_base_of_v { if constexpr (shared) { auto obj = std::make_shared(std::forward(params)...); diff --git a/lib/stream_support.hpp b/lib/stream_support.hpp index 3f0165c..5238234 100644 --- a/lib/stream_support.hpp +++ b/lib/stream_support.hpp @@ -8,8 +8,8 @@ #include template -concept spanable = std::is_constructible_v, T> && !std::is_same_v>; +concept spanable = std::is_constructible_v, T> && ! +std::is_same_v>; namespace std { template diff --git a/lib/worker.h b/lib/worker.h index de7d973..7cd06f9 100644 --- a/lib/worker.h +++ b/lib/worker.h @@ -24,7 +24,8 @@ public: template void - addWork(Params &&... params) requires std::is_base_of_v + addWork(Params &&... params) + requires std::is_base_of_v { addWork(std::make_unique(std::forward(params)...)); } @@ -49,7 +50,8 @@ class Worker { public: template void - addWork(Params &&... params) requires std::is_base_of_v + addWork(Params &&... params) + requires std::is_base_of_v { T(std::forward(params)...).doWork(); } -- cgit v1.2.3