diff options
Diffstat (limited to 'src/DI/object_wrapper.tpp')
-rw-r--r-- | src/DI/object_wrapper.tpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DI/object_wrapper.tpp b/src/DI/object_wrapper.tpp index 5334247..1811db8 100644 --- a/src/DI/object_wrapper.tpp +++ b/src/DI/object_wrapper.tpp @@ -3,7 +3,8 @@ #include "object_wrapper.hpp" template <class Interface, class ObjectImpl> -auto ObjectWrapper<Interface, ObjectImpl>::get() const noexcept -> std::shared_ptr<Interface> +auto ObjectWrapper<Interface, ObjectImpl>::get() const noexcept + -> std::unique_ptr<Interface> { return ObjectImpl::resolve(_container); } |