Преглед изворни кода

sparse_set: const correctness

Michele Caini пре 2 година
родитељ
комит
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);
     }