Browse Source

sigh_mixin: minor changes

Michele Caini 2 years ago
parent
commit
ad081f41db
1 changed files with 2 additions and 1 deletions
  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");
     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");
         ENTT_ASSERT(owner != nullptr, "Invalid pointer to registry");
         return static_cast<owner_type &>(*owner);
         return static_cast<owner_type &>(*owner);
     }
     }
 
 
+private:
     void pop(underlying_iterator first, underlying_iterator last) final {
     void pop(underlying_iterator first, underlying_iterator last) final {
         if(auto &reg = owner_or_assert(); destruction.empty()) {
         if(auto &reg = owner_or_assert(); destruction.empty()) {
             underlying_type::pop(first, last);
             underlying_type::pop(first, last);