Ticket #2313: multi_index_container_assignment.patch

File multi_index_container_assignment.patch, 623 bytes (added by niels_dekker, 14 years ago)
  • multi_index_container.hpp

     
    267267  }
    268268
    269269  multi_index_container<Value,IndexSpecifierList,Allocator>& operator=(
    270     const multi_index_container<Value,IndexSpecifierList,Allocator>& x)
     270    multi_index_container<Value,IndexSpecifierList,Allocator> x)
    271271  {
    272272    BOOST_MULTI_INDEX_CHECK_INVARIANT;
    273     multi_index_container<Value,IndexSpecifierList,Allocator> tmp(x);
    274     this->swap(tmp);
     273    this->swap(x);
    275274    return *this;
    276275  }
    277276