From 70b21e90d7be4d892b7d17440d64630e7ee1a575 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Mar 2022 19:17:48 +0100 Subject: refactor: improve factories --- src/interfaces/vector2.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/interfaces/vector2.hpp') diff --git a/src/interfaces/vector2.hpp b/src/interfaces/vector2.hpp index 569dc30..dfd369f 100644 --- a/src/interfaces/vector2.hpp +++ b/src/interfaces/vector2.hpp @@ -1,6 +1,5 @@ #pragma once -#include #include class IVector2 @@ -42,5 +41,4 @@ struct IVector2Options unsigned int y; }; -using IVector2Factory = - std::function(const IVector2Options &options)>; +using IVector2Factory = std::shared_ptr (*)(const IVector2Options &options); -- cgit v1.2.3-18-g5258