Fix issue with std::pmr::polymorphic_allocator

This commit is contained in:
greg7mdp
2024-12-14 19:14:37 -05:00
parent 53aa8a800e
commit 640aef361d
+3 -1
View File
@@ -2774,7 +2774,9 @@ public:
node_handle_base& operator=(node_handle_base&& other) noexcept {
destroy();
if (!other.empty()) {
alloc_ = other.alloc_;
if (other.alloc_) {
alloc_.emplace(other.alloc_.value());
}
PolicyTraits::transfer(alloc(), slot(), other.slot());
other.reset();
}