aboutsummaryrefslogtreecommitdiff
path: root/src/DI/function_wrapper.tpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DI/function_wrapper.tpp')
-rw-r--r--src/DI/function_wrapper.tpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DI/function_wrapper.tpp b/src/DI/function_wrapper.tpp
index 6a9c317..d672a49 100644
--- a/src/DI/function_wrapper.tpp
+++ b/src/DI/function_wrapper.tpp
@@ -1,9 +1,11 @@
#pragma once
+#include <utility>
+
#include "function_wrapper.hpp"
template <class Interface>
-FunctionWrapper<Interface>::FunctionWrapper(Interface func) noexcept : _func(func)
+FunctionWrapper<Interface>::FunctionWrapper(Interface func) noexcept : _func(std::move(func))
{
}