Browse Source

scheduler: minor changes

Michele Caini 1 year ago
parent
commit
6e9be219ba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/process/scheduler.hpp

+ 2 - 2
src/entt/process/scheduler.hpp

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