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/generation_tracker.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interfaces/generation_tracker.hpp') diff --git a/src/interfaces/generation_tracker.hpp b/src/interfaces/generation_tracker.hpp index fcd2426..fd2c130 100644 --- a/src/interfaces/generation_tracker.hpp +++ b/src/interfaces/generation_tracker.hpp @@ -1,5 +1,7 @@ #pragma once +#include "DI/factory.hpp" + #include #include @@ -16,4 +18,5 @@ public: virtual void set_is_paused(bool is_paused) noexcept = 0; }; -using IGenerationTrackerFactory = std::shared_ptr (*)(bool is_paused); +using IGenerationTrackerFactory = + Factory(bool is_paused)>; -- cgit v1.2.3-18-g5258