diff options
Diffstat (limited to 'src/tasks/tasks.hpp')
| -rw-r--r-- | src/tasks/tasks.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks/tasks.hpp b/src/tasks/tasks.hpp index 2f008120..06cbd26b 100644 --- a/src/tasks/tasks.hpp +++ b/src/tasks/tasks.hpp @@ -106,7 +106,7 @@ class Worker { * asynchronously returns the result as a future. */ template <typename T> - auto Dispatch(const std::function<T(void)>& fn) -> std::future<T> { + auto Dispatch(const std::function<T(void)> fn) -> std::future<T> { std::shared_ptr<std::promise<T>> promise = std::make_shared<std::promise<T>>(); WorkItem item{ @@ -125,6 +125,6 @@ class Worker { /* Specialisation of Evaluate for functions that return nothing. */ template <> -auto Worker::Dispatch(const std::function<void(void)>& fn) -> std::future<void>; +auto Worker::Dispatch(const std::function<void(void)> fn) -> std::future<void>; } // namespace tasks |
