Skip to content

Commit

Permalink
Fix issue with std::pmr::polymorphic_allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Dec 15, 2024
1 parent 53aa8a8 commit 640aef3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parallel_hashmap/phmap_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2774,7 +2774,9 @@ class node_handle_base
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();
}
Expand Down

0 comments on commit 640aef3

Please sign in to comment.