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

This commit is contained in:
Michele Caini
2022-12-13 15:40:25 +01:00
parent 58d392e813
commit 00231bf8a7

View File

@@ -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");