Author: faridz
Date: Fri Aug 14 16:44:37 2009
New Revision: 804291
URL: http://svn.apache.org/viewvc?rev=804291&view=rev
Log:
2009-08-14 Farid Zaripov <[email protected]>
Merged r804283, r804285 from 4.2.x branch
* tests/regress/23.vector.stdcxx-1037.cpp: New regression
test for STDCXX-1037.
STDCXX-1037
* include/vector.cc: Assign __other's data to self before
swaping __other with __tmp.
Added:
stdcxx/trunk/tests/regress/23.vector.stdcxx-1037.cpp
- copied unchanged from r804283,
stdcxx/branches/4.2.x/tests/regress/23.vector.stdcxx-1037.cpp
Modified:
stdcxx/trunk/include/vector.cc
Modified: stdcxx/trunk/include/vector.cc
URL:
http://svn.apache.org/viewvc/stdcxx/trunk/include/vector.cc?rev=804291&r1=804290&r2=804291&view=diff
==============================================================================
--- stdcxx/trunk/include/vector.cc (original)
+++ stdcxx/trunk/include/vector.cc Fri Aug 14 16:44:37 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);
}