HPL1: fix Std::Tree erase

This commit is contained in:
grisenti 2023-03-08 15:58:13 +01:00
parent 49d037aa11
commit 0b267b61df

View File

@ -220,7 +220,7 @@ public:
if (v)
v->parent = u->parent;
if (u == _leftmost)
_leftmost = v ? v : u->parent;
_leftmost = v ? leftmost(v) : u->parent;
--_size;
auto const ret = ++it;
delete u;