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/randomization.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/interfaces/randomization.hpp') diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp index 8b1631c..4abad1d 100644 --- a/src/interfaces/randomization.hpp +++ b/src/interfaces/randomization.hpp @@ -1,5 +1,7 @@ #pragma once +#include "DI/factory.hpp" + #include // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) @@ -28,4 +30,4 @@ public: }; using IRandomNumberGeneratorFactory = - std::shared_ptr (*)(const uint32_t &seed); + Factory(const uint32_t &seed)>; -- cgit v1.2.3-18-g5258