diff --git a/include/boost/intrusive/bstree_algorithms.hpp b/include/boost/intrusive/bstree_algorithms.hpp index f511e20..e85e964 100644 --- a/include/boost/intrusive/bstree_algorithms.hpp +++ b/include/boost/intrusive/bstree_algorithms.hpp @@ -1012,7 +1012,8 @@ class bstree_algorithms : public bstree_algorithms_base while(x){ ++depth; y = x; - x = (left_child = comp(key, x)) ? + left_child = comp(key, x); + x = left_child ? NodeTraits::get_left(x) : (prev = y, NodeTraits::get_right(x)); }