Răsfoiți Sursa

dispatcher: minor changes

Michele Caini 1 an în urmă
părinte
comite
7abe76e4f7
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/entt/signal/dispatcher.hpp

+ 2 - 2
src/entt/signal/dispatcher.hpp

@@ -172,7 +172,7 @@ public:
      */
      */
     basic_dispatcher(basic_dispatcher &&other, const allocator_type &allocator) noexcept
     basic_dispatcher(basic_dispatcher &&other, const allocator_type &allocator) noexcept
         : pools{container_type{std::move(other.pools.first()), allocator}, allocator} {
         : pools{container_type{std::move(other.pools.first()), allocator}, allocator} {
-        ENTT_ASSERT(alloc_traits::is_always_equal::value || pools.second() == other.pools.second(), "Copying a dispatcher is not allowed");
+        ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a dispatcher is not allowed");
     }
     }
 
 
     /**
     /**
@@ -181,7 +181,7 @@ public:
      * @return This dispatcher.
      * @return This dispatcher.
      */
      */
     basic_dispatcher &operator=(basic_dispatcher &&other) noexcept {
     basic_dispatcher &operator=(basic_dispatcher &&other) noexcept {
-        ENTT_ASSERT(alloc_traits::is_always_equal::value || pools.second() == other.pools.second(), "Copying a dispatcher is not allowed");
+        ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a dispatcher is not allowed");
         pools = std::move(other.pools);
         pools = std::move(other.pools);
         return *this;
         return *this;
     }
     }