mirror of
https://github.com/boostorg/intrusive.git
synced 2025-09-25 08:20:55 +02:00
Add missing invariant check in the right child case inside "rebalance_after_erasure_restore_invariants"
This commit is contained in:
@@ -508,6 +508,7 @@ class rbtree_algorithms
|
||||
else {
|
||||
// same as above, with right_ <-> left_.
|
||||
node_ptr w = x_parent_left;
|
||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(w);
|
||||
if(NodeTraits::get_color(w) == NodeTraits::red()){
|
||||
NodeTraits::set_color(w, NodeTraits::black());
|
||||
NodeTraits::set_color(x_parent, NodeTraits::red());
|
||||
|
Reference in New Issue
Block a user