From 6e9be219baa969b59aa577e9c97b10d62023bd57 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 24 Apr 2024 18:33:04 +0200 Subject: [PATCH] scheduler: minor changes --- src/entt/process/scheduler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/process/scheduler.hpp b/src/entt/process/scheduler.hpp index ebd2ea83a..77a88c2e8 100644 --- a/src/entt/process/scheduler.hpp +++ b/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; }