Author: faridz Date: Fri Aug 14 16:34:48 2009 New Revision: 804285 URL: http://svn.apache.org/viewvc?rev=804285&view=rev Log: 2009-08-14 Farid Zaripov <far...@apache.org>
STDCXX-1037 * include/vector.cc: Assign __other's data to self before swaping __other with __tmp. Modified: stdcxx/branches/4.2.x/include/vector.cc Modified: stdcxx/branches/4.2.x/include/vector.cc URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/vector.cc?rev=804285&r1=804284&r2=804285&view=diff ============================================================================== --- stdcxx/branches/4.2.x/include/vector.cc (original) +++ stdcxx/branches/4.2.x/include/vector.cc Fri Aug 14 16:34:48 2009 @@ -133,6 +133,7 @@ _RWSTD_ASSERT (__tmp.get_allocator () == __other.get_allocator ()); __tmp.assign (begin (), end ()); + assign (__other.begin (), __other.end ()); __other.swap (__tmp); }