diff --git a/include/boost/intrusive/detail/common_slist_algorithms.hpp b/include/boost/intrusive/detail/common_slist_algorithms.hpp index ada51a9..d837ad0 100644 --- a/include/boost/intrusive/detail/common_slist_algorithms.hpp +++ b/include/boost/intrusive/detail/common_slist_algorithms.hpp @@ -76,7 +76,7 @@ class common_slist_algorithms static void transfer_after(node_ptr p, node_ptr b, node_ptr e) { - if (p != b && p != e) { + if (p != b && p != e && b != e) { node_ptr next_b = NodeTraits::get_next(b); node_ptr next_e = NodeTraits::get_next(e); node_ptr next_p = NodeTraits::get_next(p);