summaryrefslogtreecommitdiff
path: root/lib/worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/worker.h')
-rw-r--r--lib/worker.h6
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();
}