Author: faridz
Date: Wed Feb 7 07:28:39 2007
New Revision: 504581
URL: http://svn.apache.org/viewvc?view=rev&rev=504581
Log:
2007-02-07 Farid Zaripov <[EMAIL PROTECTED]>
STDCXX-334
* list (swap): Fixed bug: used reference instead of the temporary
object.
Modified:
incubator/stdcxx/trunk/include/list
Modified: incubator/stdcxx/trunk/include/list
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/list?view=diff&rev=504581&r1=504580&r2=504581
==============================================================================
--- incubator/stdcxx/trunk/include/list (original)
+++ incubator/stdcxx/trunk/include/list Wed Feb 7 07:28:39 2007
@@ -904,7 +904,7 @@
_STD::swap (_C_last, __x._C_last);
}
else {
- list &__tmp = *this;
+ list __tmp (*this);
*this = __x;
__x = __tmp;
}