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/interfaces/matrix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/matrix.hpp') diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp index edcf935..7fea003 100644 --- a/src/interfaces/matrix.hpp +++ b/src/interfaces/matrix.hpp @@ -1,8 +1,8 @@ #pragma once +#include "DI/factory.hpp" #include "engine/data/bounds.hpp" #include "engine/data/vector2.hpp" - #include "engine/matrix_iterator.hpp" #include @@ -39,4 +39,4 @@ public: }; template -using IMatrixFactory = std::shared_ptr> (*)(const Bounds &bounds); +using IMatrixFactory = Factory>(const Bounds &bounds)>; -- cgit v1.2.3-18-g5258