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 ff22b8c commit 34c52fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/gtl/gtl_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,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 34c52fa

Please sign in to comment.