Browse Source

suppress wrong warning

Michele Caini 6 years ago
parent
commit
b1325a7514
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/entt/entity/registry.hpp

+ 2 - 1
src/entt/entity/registry.hpp

@@ -1371,7 +1371,8 @@ public:
                         curr->construct(entity);
                     } else {
                         const auto pos = curr->owned++;
-                        (swap<Owned>(0, std::get<pool_type<Owned> *>(cpools), entity, pos), ...);
+                        // useless this-> used to suppress a warning with gcc and clang
+                        (this->swap<Owned>(0, std::get<pool_type<Owned> *>(cpools), entity, pos), ...);
                     }
                 }
             });