registry: swap based move assignment operator

This commit is contained in:
Michele Caini
2024-09-06 15:25:38 +02:00
parent d40e5f3dd5
commit 3b4864aeae

View File

@@ -377,13 +377,7 @@ public:
* @return This registry.
*/
basic_registry &operator=(basic_registry &&other) noexcept {
vars = std::move(other.vars);
pools = std::move(other.pools);
groups = std::move(other.groups);
entities = std::move(other.entities);
rebind();
swap(other);
return *this;
}