This commit is contained in:
joaquintides
2023-08-25 19:45:16 +02:00
parent d007a5a7bd
commit ca2a46f290
6 changed files with 27 additions and 22 deletions

View File

@@ -2327,9 +2327,9 @@ namespace boost {
alloc_ == n.alloc_);
if (value_allocator_traits::propagate_on_container_swap::value ||
!alloc_.has_value() || !n.alloc_.has_value()) {
boost::swap(alloc_, n.alloc_);
boost::core::invoke_swap(alloc_, n.alloc_);
}
boost::swap(ptr_, n.ptr_);
boost::core::invoke_swap(ptr_, n.ptr_);
}
};
@@ -2376,9 +2376,9 @@ namespace boost {
void swap(
insert_return_type_set<Iter, NodeType>& x, insert_return_type_set<Iter, NodeType>& y)
{
boost::swap(x.node, y.node);
boost::swap(x.inserted, y.inserted);
boost::swap(x.position, y.position);
boost::core::invoke_swap(x.node, y.node);
boost::core::invoke_swap(x.inserted, y.inserted);
boost::core::invoke_swap(x.position, y.position);
}
} // namespace unordered