aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-11 22:38:10 +0200
committerHampusM <hampus@hampusmat.com>2022-06-11 22:38:10 +0200
commit7a191f97ce0c222566973f9e18b43036844ecf3c (patch)
tree9b4ea86c96aded3319e410d1222c9ff0c6f66cb6 /examples/basic/src/bootstrap.cpp
parent77d97c914a157037b6729d0f3b0fb265aacf4741 (diff)
refactor!: simplify tagging
Diffstat (limited to 'examples/basic/src/bootstrap.cpp')
-rw-r--r--examples/basic/src/bootstrap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic/src/bootstrap.cpp b/examples/basic/src/bootstrap.cpp
index ac81bd9..78c5a37 100644
--- a/examples/basic/src/bootstrap.cpp
+++ b/examples/basic/src/bootstrap.cpp
@@ -27,7 +27,7 @@ auto bootstrap() -> yacppdic::Container
return std::make_unique<Enemy>(65);
}
)
- .when_tagged(SMALL_ENEMY_TAG);
+ .when_tagged<SMALL_ENEMY_TAG>();
container.bind<IEnemyFactory>()
.to_factory(
@@ -36,7 +36,7 @@ auto bootstrap() -> yacppdic::Container
return std::make_unique<Enemy>(130);
}
)
- .when_tagged(BIG_ENEMY_TAG);
+ .when_tagged<BIG_ENEMY_TAG>();
return container;
}