From b36d072ad7a7b9c6e30fcb25d6bbb001a8393468 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 10 Apr 2022 17:20:49 +0200 Subject: refactor: add factory class & make DI container return unique ptrs --- src/DI/function_wrapper.tpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/DI/function_wrapper.tpp') 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 + #include "function_wrapper.hpp" template -FunctionWrapper::FunctionWrapper(Interface func) noexcept : _func(func) +FunctionWrapper::FunctionWrapper(Interface func) noexcept : _func(std::move(func)) { } -- cgit v1.2.3-18-g5258