mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Corrected bug in assignment operator
[SVN r35646]
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user