Parcourir la source

sparse_set: const correctness

Michele Caini il y a 2 ans
Parent
commit
2fba813e23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }