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 <[EMAIL PROTECTED]>

        * 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);


Reply via email to