aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-04 11:04:41 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commita93270968f9aab5d8c1c528daf02c8b27d09eed7 (patch)
tree471394acdf19139a606ca68e558f84dc45ab5171 /src/bootstrap.cpp
parent9e61e23ad2ac72030f14ea59e502c19d52995f3a (diff)
refactor: fix compiler errors with libc++
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index f22c689..276b73a 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -56,6 +56,7 @@ auto bootstrap() noexcept -> Container
container.bind<ICursorController>().to<CursorController>();
container.bind<ICLIGameEngine>().to<CLIGameEngine>();
container.bind<IWindow>().to<Window>();
+ container.bind<ISeedGenerator>().to<SeedGenerator>();
container.bind<IGameFactory>().to_factory(normalize_lambda(
[&container](const std::shared_ptr<IWindow> &window,
@@ -82,13 +83,6 @@ auto bootstrap() noexcept -> Container
seed);
});
- container.bind<ISeedGeneratorFactory>().to_factory(
- []()
- {
- return construct_as_interface<ISeedGenerator, SeedGenerator>(
- std::make_shared<std::random_device>());
- });
-
container.bind<IMatrixFactory<std::string_view>>().to_factory(
[](const Bounds &bounds)
{