Fixed typo in swap function

This commit is contained in:
Ion Gaztañaga
2017-03-02 09:15:55 +01:00
parent 6510ac498e
commit b25ab5112a

View File

@@ -967,7 +967,7 @@ class bstree_impl
void swap(bstree_impl& other)
{
//This can throw
::boost::adl_move_swap(this->comp(), other->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());