diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 18:14:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 19:29:39 +0100 |
commit | 932f4cdc07c0d5894621f51ad45b286e6c2e4415 (patch) | |
tree | 4df22157a73c65baebbff849cfb02b9fecd7b466 /lib/worker.h | |
parent | Disable warnings on generated/wrapper code (diff) | |
download | ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.tar.bz2 ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.tar.xz ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.zip |
Latest clang-formatting
Diffstat (limited to 'lib/worker.h')
-rw-r--r-- | lib/worker.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<typename T, typename... Params> void - addWork(Params &&... params) requires std::is_base_of_v<Work, T> + addWork(Params &&... params) + requires std::is_base_of_v<Work, T> { addWork(std::make_unique<T>(std::forward<Params>(params)...)); } @@ -49,7 +50,8 @@ class Worker { public: template<typename T, typename... Params> void - addWork(Params &&... params) requires std::is_base_of_v<Work, T> + addWork(Params &&... params) + requires std::is_base_of_v<Work, T> { T(std::forward<Params>(params)...).doWork(); } |