give proper move semantics to Handle<>

This commit is contained in:
Mathias Agopian
2024-04-23 11:17:37 -07:00
committed by Mathias Agopian
parent 6146d071ba
commit 99eac62b4e
3 changed files with 17 additions and 2 deletions

View File

@@ -513,7 +513,7 @@ public:
return (soa.elementAt<E>(i) = other);
}
UTILS_ALWAYS_INLINE Type const& operator = (Type&& other) noexcept {
return (soa.elementAt<E>(i) = other);
return (soa.elementAt<E>(i) = std::forward<Type>(other));
}
// comparisons
UTILS_ALWAYS_INLINE bool operator==(Type const& other) const {