소스 검색

scheduler: swap based move assignment operator

Michele Caini 1 년 전
부모
커밋
63d6db37d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/entt/process/scheduler.hpp

+ 1 - 1
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;
     }