Ver Fonte

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

ceeac há 7 anos atrás
pai
commit
a88fd1c669
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -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 ...