aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-23 19:46:11 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 (patch)
tree334bc2d5c0287a9317e3e18f69f5cc9bf06711cb /src/bootstrap.cpp
parentc9297a82291882e4043ae5e0de2e631940e96b52 (diff)
refactor: use char as matrix element in scene
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index ef54940..02ec92d 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -76,16 +76,16 @@ auto bootstrap() noexcept -> yacppdic::Container
return std::make_unique<RandomNumberGenerator>(seed);
});
- container.bind<IMatrixFactory<std::string_view>>().to_factory(
+ container.bind<IMatrixFactory<char>>().to_factory(
[](const Bounds &bounds)
{
- return std::make_unique<Matrix<std::string_view>>(bounds);
+ return std::make_unique<Matrix<char>>(bounds);
});
container.bind<ISceneFactory>().to_factory(
[&container](const std::shared_ptr<ICursorController> &cursor_controller)
{
- auto matrix_factory = container.get<IMatrixFactory<std::string_view>>();
+ auto matrix_factory = container.get<IMatrixFactory<Scene::MatrixElement>>();
return std::make_unique<Scene>(matrix_factory, cursor_controller);
});