From 0b19c9be0bf75a08e746d76cda970d2b86d10775 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 29 Jun 2021 15:10:41 +0200 Subject: [PATCH] storage: add override specifier --- src/entt/entity/storage.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index 7f6793040..6dd2ab193 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -268,7 +268,7 @@ protected: } /*! @copydoc basic_sparse_set::swap_and_pop */ - void swap_and_pop(const Entity entt, void *ud) { + void swap_and_pop(const Entity entt, void *ud) override { const auto pos = underlying_type::index(entt); const auto last = underlying_type::size() - 1u; auto &&elem = packed[page(pos)][offset(pos)]; @@ -282,7 +282,7 @@ protected: } /*! @copydoc basic_sparse_set::in_place_pop */ - void in_place_pop(const Entity entt, void *ud) { + void in_place_pop(const Entity entt, void *ud) override { const auto pos = underlying_type::index(entt); underlying_type::in_place_pop(entt, ud); // support for nosy destructors