Explorar el Código

sigh_mixin: minor changes

Michele Caini hace 2 años
padre
commit
ad081f41db
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/entt/entity/mixin.hpp

+ 2 - 1
src/entt/entity/mixin.hpp

@@ -37,11 +37,12 @@ class basic_sigh_mixin final: public Type {
 
     static_assert(std::is_base_of_v<basic_registry_type, owner_type>, "Invalid registry type");
 
-    owner_type &owner_or_assert() const noexcept {
+    auto &owner_or_assert() const noexcept {
         ENTT_ASSERT(owner != nullptr, "Invalid pointer to registry");
         return static_cast<owner_type &>(*owner);
     }
 
+private:
     void pop(underlying_iterator first, underlying_iterator last) final {
         if(auto &reg = owner_or_assert(); destruction.empty()) {
             underlying_type::pop(first, last);