From a93270968f9aab5d8c1c528daf02c8b27d09eed7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 4 Apr 2022 11:04:41 +0200 Subject: refactor: fix compiler errors with libc++ --- src/game_of_life.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game_of_life.cpp') 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(); + auto seed_generator = container.get(); auto random_number_generator_factory = container.get(); 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(); -- cgit v1.2.3-18-g5258