[SVN r48728]
This commit is contained in:
Joaquín M López Muñoz 2008-09-11 07:13:11 +00:00
parent 6b5f74732b
commit 05e70771fd

View File

@ -267,11 +267,10 @@ public:
} }
multi_index_container<Value,IndexSpecifierList,Allocator>& operator=( multi_index_container<Value,IndexSpecifierList,Allocator>& operator=(
const multi_index_container<Value,IndexSpecifierList,Allocator>& x) multi_index_container<Value,IndexSpecifierList,Allocator> x)
{ {
BOOST_MULTI_INDEX_CHECK_INVARIANT; BOOST_MULTI_INDEX_CHECK_INVARIANT;
multi_index_container<Value,IndexSpecifierList,Allocator> tmp(x); this->swap(x);
this->swap(tmp);
return *this; return *this;
} }