Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48728 - trunk/boost
From: joaquin_at_[hidden]
Date: 2008-09-11 03:13:11


Author: joaquin
Date: 2008-09-11 03:13:11 EDT (Thu, 11 Sep 2008)
New Revision: 48728
URL: http://svn.boost.org/trac/boost/changeset/48728

Log:
fixed #2313
Text files modified:
   trunk/boost/multi_index_container.hpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/boost/multi_index_container.hpp
==============================================================================
--- trunk/boost/multi_index_container.hpp (original)
+++ trunk/boost/multi_index_container.hpp 2008-09-11 03:13:11 EDT (Thu, 11 Sep 2008)
@@ -267,11 +267,10 @@
   }
 
   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;
- multi_index_container<Value,IndexSpecifierList,Allocator> tmp(x);
- this->swap(tmp);
+ this->swap(x);
     return *this;
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk