diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-03 19:17:48 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 70b21e90d7be4d892b7d17440d64630e7ee1a575 (patch) | |
tree | 429e9038df3263b31e98df301d0a0c85671057fa /src/DI/function_wrapper.tpp | |
parent | c2f41a5b278df2837f4cc5617df07248a048d93c (diff) |
refactor: improve factories
Diffstat (limited to 'src/DI/function_wrapper.tpp')
-rw-r--r-- | src/DI/function_wrapper.tpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DI/function_wrapper.tpp b/src/DI/function_wrapper.tpp index 4e09957..920c7f2 100644 --- a/src/DI/function_wrapper.tpp +++ b/src/DI/function_wrapper.tpp @@ -3,6 +3,11 @@ #include "function_wrapper.hpp" template <class Interface> +FunctionWrapper<Interface>::FunctionWrapper(Interface func) noexcept : _func(func) +{ +} + +template <class Interface> Interface FunctionWrapper<Interface>::get() const { return _func; |