mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Fix issue with std::pmr::polymorphic_allocator
This commit is contained in:
Vendored
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user