summaryrefslogtreecommitdiff
path: root/boost/intrusive/bstree.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/intrusive/bstree.hpp')
-rw-r--r--boost/intrusive/bstree.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/intrusive/bstree.hpp b/boost/intrusive/bstree.hpp
index f2cdb428b4..1eeab55113 100644
--- a/boost/intrusive/bstree.hpp
+++ b/boost/intrusive/bstree.hpp
@@ -967,7 +967,7 @@ class bstree_impl
void swap(bstree_impl& other)
{
//This can throw
- ::boost::adl_move_swap(this->comp(), this->comp());
+ ::boost::adl_move_swap(this->comp(), other.comp());
//These can't throw
node_algorithms::swap_tree(this->header_ptr(), node_ptr(other.header_ptr()));
this->sz_traits().swap(other.sz_traits());