diff options
author | HampusM <hampus@hampusmat.com> | 2022-04-04 11:04:41 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:58 +0200 |
commit | a93270968f9aab5d8c1c528daf02c8b27d09eed7 (patch) | |
tree | 471394acdf19139a606ca68e558f84dc45ab5171 /src/game_of_life.cpp | |
parent | 9e61e23ad2ac72030f14ea59e502c19d52995f3a (diff) |
refactor: fix compiler errors with libc++
Diffstat (limited to 'src/game_of_life.cpp')
-rw-r--r-- | src/game_of_life.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game_of_life.cpp b/src/game_of_life.cpp index 1daf5b8..098ec32 100644 --- a/src/game_of_life.cpp +++ b/src/game_of_life.cpp @@ -20,13 +20,13 @@ auto main(int argc, char *argv[]) noexcept -> int if (parsed_arguments.random_gen == nullptr) { - auto seed_generator_factory = container.get<ISeedGeneratorFactory>(); + auto seed_generator = container.get<ISeedGenerator>(); auto random_number_generator_factory = container.get<IRandomNumberGeneratorFactory>(); parsed_arguments.random_gen = - random_number_generator_factory(seed_generator_factory()->random_seed()); + random_number_generator_factory(seed_generator->random_seed()); } auto engine = container.get<ICLIGameEngine>(); |