stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r804285 - /stdcxx/branches/4.2.x/include/vector.cc
Date Fri, 14 Aug 2009 16:34:48 GMT
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  <faridz@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);
 }
 



Mime
View raw message