From 63d6db37d8aa2a3cb69161a49aa48b3768d8a0a4 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 6 Sep 2024 15:25:48 +0200 Subject: [PATCH] scheduler: swap based move assignment operator --- src/entt/process/scheduler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/process/scheduler.hpp b/src/entt/process/scheduler.hpp index 770059d02..1e792c7bd 100644 --- a/src/entt/process/scheduler.hpp +++ b/src/entt/process/scheduler.hpp @@ -145,7 +145,7 @@ public: */ basic_scheduler &operator=(basic_scheduler &&other) noexcept { ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a scheduler is not allowed"); - handlers = std::move(other.handlers); + swap(other); return *this; }