Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 38675 invoked from network); 10 Mar 2008 05:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 05:53:09 -0000 Received: (qmail 88337 invoked by uid 500); 10 Mar 2008 05:53:06 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 88315 invoked by uid 500); 10 Mar 2008 05:53:06 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 88304 invoked by uid 99); 10 Mar 2008 05:53:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 22:53:06 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 05:52:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 54E151A9832; Sun, 9 Mar 2008 22:52:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r635439 - /stdcxx/trunk/include/string.cc Date: Mon, 10 Mar 2008 05:52:40 -0000 To: commits@stdcxx.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080310055240.54E151A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 * 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);