Michele Caini 2 лет назад
Родитель
Сommit
2fba813e23
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/sparse_set.hpp

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

@@ -218,7 +218,7 @@ class basic_sparse_set {
         std::swap(lhs, rhs);
     }
 
-    underlying_type policy_to_head() {
+    underlying_type policy_to_head() const noexcept {
         return traits_type::entity_mask * (mode != deletion_policy::swap_only);
     }