stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r504581 - /incubator/stdcxx/trunk/include/list
Date Wed, 07 Feb 2007 15:28:40 GMT
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 <faridz@kyiv.vdiweb.com>

	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;
     }



Mime
View raw message