stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r635439 - /stdcxx/trunk/include/string.cc
Date Mon, 10 Mar 2008 05:52:40 GMT
Author: faridz
Date: Sun Mar  9 22:52:37 2008
New Revision: 635439

URL: http://svn.apache.org/viewvc?rev=635439&view=rev
Log:
2008-03-10 Farid Zaripov <farid_zaripov@epam.com>

	* include/string.cc (__replace_aux): Use static_cast<>()
	instead of reinterpret_cast<>() to prevent compile error
	when _InputIter::operator*() returns rvalue.

Modified:
    stdcxx/trunk/include/string.cc

Modified: stdcxx/trunk/include/string.cc
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/string.cc?rev=635439&r1=635438&r2=635439&view=diff
==============================================================================
--- stdcxx/trunk/include/string.cc (original)
+++ stdcxx/trunk/include/string.cc Sun Mar  9 22:52:37 2008
@@ -652,7 +652,7 @@
 
             if (__n2) {
                 const const_pointer __ptr =
-                    &_RWSTD_REINTERPRET_CAST (const_reference, *__first2);
+                    &_RWSTD_STATIC_CAST (const_reference, *__first2);
 
                 if (__s.data () <= __ptr && __s.data () + __ssize > __ptr)
{
                     const _RWSTD_SIZE_T __tmp_size = __n2 * sizeof (value_type);



Mime
View raw message