Przeglądaj źródła

sparse_set: const correctness

Michele Caini 2 lat temu
rodzic
commit
2fba813e23
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
     }