Browse Source

storage: make swap_at non-final to support checks on derived classes

Michele Caini 3 years ago
parent
commit
00231bf8a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/storage.hpp

+ 1 - 1
src/entt/entity/storage.hpp

@@ -304,7 +304,7 @@ private:
         return std::addressof(element_at(pos));
     }
 
-    void swap_at([[maybe_unused]] const std::size_t from, [[maybe_unused]] const std::size_t to) final {
+    void swap_at([[maybe_unused]] const std::size_t from, [[maybe_unused]] const std::size_t to) override {
         // use a runtime value to avoid compile-time suppression that drives the code coverage tool crazy
         ENTT_ASSERT((from + 1u) && !is_pinned_type_v, "Pinned type");