storage: fixed clear_all counter

This commit is contained in:
Michele Caini
2023-01-12 15:53:50 +01:00
parent b3e93b084e
commit f3cd9d374d

View File

@@ -351,7 +351,7 @@ protected:
/*! @brief Erases all entities of a storage. */
void clear_all() override {
for(auto first = base_type::begin(); first.index() > 0; ++first) {
for(auto first = base_type::begin(); !(first.index() < 0); ++first) {
const auto idx = static_cast<size_type>(first.index());
if constexpr(traits_type::in_place_delete) {