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/object_wrapper.tpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/DI/object_wrapper.tpp') 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 -auto ObjectWrapper::get() const noexcept -> std::shared_ptr +auto ObjectWrapper::get() const noexcept + -> std::unique_ptr { return ObjectImpl::resolve(_container); } -- cgit v1.2.3-18-g5258