diff --git a/include/boost/interprocess/containers/set.hpp b/include/boost/interprocess/containers/set.hpp index 142f42f..0a4ebb7 100644 --- a/include/boost/interprocess/containers/set.hpp +++ b/include/boost/interprocess/containers/set.hpp @@ -120,7 +120,7 @@ class set : m_tree(move(x.get().m_tree)) {} set& operator=(const set& x) - { m_tree = m_tree; return *this; } + { m_tree = x.m_tree; return *this; } set& operator=(const detail::moved_object >& x) { m_tree.swap(x.get().m_tree); return *this; }