Quellcode durchsuchen

registry: make a couple of conditions opaque

Michele Caini vor 3 Jahren
Ursprung
Commit
7be8d83278
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/entt/entity/registry.hpp

+ 2 - 2
src/entt/entity/registry.hpp

@@ -413,7 +413,7 @@ public:
           epool{std::move(other.epool)},
           epool{std::move(other.epool)},
           pools{std::move(other.pools)},
           pools{std::move(other.pools)},
           groups{std::move(other.groups)} {
           groups{std::move(other.groups)} {
-        ENTT_ASSERT(alloc_traits::is_always_equal::value || epool.get_allocator() == other.epool.get_allocator(), "Copying a registry is not allowed");
+        ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a registry is not allowed");
 
 
         rebind();
         rebind();
     }
     }
@@ -424,7 +424,7 @@ public:
      * @return This registry.
      * @return This registry.
      */
      */
     basic_registry &operator=(basic_registry &&other) noexcept {
     basic_registry &operator=(basic_registry &&other) noexcept {
-        ENTT_ASSERT(alloc_traits::is_always_equal::value || epool.get_allocator() == other.epool.get_allocator(), "Copying a registry is not allowed");
+        ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a registry is not allowed");
 
 
         vars = std::move(other.vars);
         vars = std::move(other.vars);
         free_list = std::move(other.free_list);
         free_list = std::move(other.free_list);