diff options
Diffstat (limited to 'src/DI/object_wrapper.hpp')
-rw-r--r-- | src/DI/object_wrapper.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DI/object_wrapper.hpp b/src/DI/object_wrapper.hpp index 28121cb..6433bc2 100644 --- a/src/DI/object_wrapper.hpp +++ b/src/DI/object_wrapper.hpp @@ -6,12 +6,12 @@ #include <memory> template <class Interface, class ObjectImpl> -class ObjectWrapper : public IWrapper<std::shared_ptr<Interface>> +class ObjectWrapper : public IWrapper<std::unique_ptr<Interface>> { public: explicit ObjectWrapper(const Container &container) noexcept : _container(container) {} - [[nodiscard]] auto get() const noexcept -> std::shared_ptr<Interface> override; + [[nodiscard]] auto get() const noexcept -> std::unique_ptr<Interface> override; private: const Container &_container; |