aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/matrix.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 19:17:48 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit70b21e90d7be4d892b7d17440d64630e7ee1a575 (patch)
tree429e9038df3263b31e98df301d0a0c85671057fa /src/interfaces/matrix.hpp
parentc2f41a5b278df2837f4cc5617df07248a048d93c (diff)
refactor: improve factories
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r--src/interfaces/matrix.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp
index ab5f40b..72d18d9 100644
--- a/src/interfaces/matrix.hpp
+++ b/src/interfaces/matrix.hpp
@@ -3,7 +3,6 @@
#include "interfaces/bounds.hpp"
#include "interfaces/vector2.hpp"
-#include <functional>
#include <memory>
template <typename Element>
@@ -46,5 +45,4 @@ public:
};
template <typename Element>
-using IMatrixFactory =
- std::function<std::shared_ptr<IMatrix<Element>>(const IBounds &bounds)>;
+using IMatrixFactory = std::shared_ptr<IMatrix<Element>> (*)(const IBounds &bounds);