Corrected bug in assignment operator

[SVN r35646]
This commit is contained in:
Ion Gaztañaga
2006-10-17 05:09:40 +00:00
parent 9a73e2c25e
commit 1dafd986ed

View File

@@ -120,7 +120,7 @@ class set
: m_tree(move(x.get().m_tree)) {}
set<T,Pred,Alloc>& operator=(const set<T, Pred, Alloc>& x)
{ m_tree = m_tree; return *this; }
{ m_tree = x.m_tree; return *this; }
set<T,Pred,Alloc>& operator=(const detail::moved_object<set<T, Pred, Alloc> >& x)
{ m_tree.swap(x.get().m_tree); return *this; }