diff options
Diffstat (limited to 'src/interfaces/generation_tracker.hpp')
-rw-r--r-- | src/interfaces/generation_tracker.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <cstdint> #include <memory> @@ -16,4 +18,5 @@ public: virtual void set_is_paused(bool is_paused) noexcept = 0; }; -using IGenerationTrackerFactory = std::shared_ptr<IGenerationTracker> (*)(bool is_paused); +using IGenerationTrackerFactory = + Factory<std::unique_ptr<IGenerationTracker>(bool is_paused)>; |