diff options
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r-- | src/interfaces/matrix.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <memory> @@ -39,4 +39,4 @@ public: }; template <typename Element> -using IMatrixFactory = std::shared_ptr<IMatrix<Element>> (*)(const Bounds &bounds); +using IMatrixFactory = Factory<std::unique_ptr<IMatrix<Element>>(const Bounds &bounds)>; |