diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-03 19:17:48 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 70b21e90d7be4d892b7d17440d64630e7ee1a575 (patch) | |
tree | 429e9038df3263b31e98df301d0a0c85671057fa /src/interfaces/bounds.hpp | |
parent | c2f41a5b278df2837f4cc5617df07248a048d93c (diff) |
refactor: improve factories
Diffstat (limited to 'src/interfaces/bounds.hpp')
-rw-r--r-- | src/interfaces/bounds.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/bounds.hpp b/src/interfaces/bounds.hpp index 7e920cf..b431874 100644 --- a/src/interfaces/bounds.hpp +++ b/src/interfaces/bounds.hpp @@ -2,7 +2,6 @@ #include "interfaces/vector2.hpp" -#include <functional> #include <memory> enum CoordsValidation @@ -39,5 +38,4 @@ struct IBoundsOptions unsigned int height; }; -using IBoundsFactory = - std::function<std::shared_ptr<IBounds>(const IBoundsOptions &options)>; +using IBoundsFactory = std::shared_ptr<IBounds> (*)(const IBoundsOptions &options); |