Fix compile error when compiling example with GCC8 (#170)

This commit is contained in:
ceeac
2018-12-16 13:48:23 +01:00
committed by Michele Caini
parent b053f23d15
commit a88fd1c669

View File

@@ -99,7 +99,7 @@ struct velocity {
float dy;
};
void update(entt::registry &registry) {
void update(entt::registry<> &registry) {
auto view = registry.view<position, velocity>();
for(auto entity: view) {
@@ -114,7 +114,7 @@ void update(entt::registry &registry) {
}
}
void update(std::uint64_t dt, entt::registry &registry) {
void update(std::uint64_t dt, entt::registry<> &registry) {
registry.view<position, velocity>().each([dt](const auto, auto &pos, auto &vel) {
// gets all the components of the view at once ...