Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 42498 invoked from network); 21 Aug 2008 13:47:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 13:47:02 -0000 Received: (qmail 54125 invoked by uid 500); 21 Aug 2008 13:47:00 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 54097 invoked by uid 500); 21 Aug 2008 13:47:00 -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 54088 invoked by uid 99); 21 Aug 2008 13:47:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 06:47:00 -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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 13:46:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 36C632388961; Thu, 21 Aug 2008 06:46:11 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r687762 - /stdcxx/branches/4.2.x/include/rw/_specialized.h Date: Thu, 21 Aug 2008 13:46:11 -0000 To: commits@stdcxx.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080821134611.36C632388961@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Thu Aug 21 06:46:10 2008 New Revision: 687762 URL: http://svn.apache.org/viewvc?rev=687762&view=rev Log: 2008-08-21 Farid Zaripov STDCXX-976 * include/rw/_specialized.h (uninitialized_copy) [!__HP_aCC]: Explicitly cast *__first into const reference to the iterator_traits<_InputIterator>::value_type type for accepting _InputIterator's with operator*() returning rvalue. Modified: stdcxx/branches/4.2.x/include/rw/_specialized.h Modified: stdcxx/branches/4.2.x/include/rw/_specialized.h URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_specialized.h?rev=687762&r1=687761&r2=687762&view=diff ============================================================================== --- stdcxx/branches/4.2.x/include/rw/_specialized.h (original) +++ stdcxx/branches/4.2.x/include/rw/_specialized.h Thu Aug 21 06:46:10 2008 @@ -52,6 +52,11 @@ #endif // _RWSTD_RW_NEW_H_INCLUDED +#ifndef _RWSTD_RW_ITERBASE_H_INCLUDED +# include +#endif // _RWSTD_RW_ITERBASE_H_INCLUDED + + _RWSTD_NAMESPACE (__rw) { @@ -162,10 +167,16 @@ _ForwardIterator __res) { const _ForwardIterator __start = __res; + typedef const _TYPENAME iterator_traits<_InputIterator>::value_type& _RefT; _TRY { for (; __first != __last; ++__first, ++__res) +#ifndef __HP_aCC + _RW::__rw_construct (&*__res, _RefT (*__first)); +#else // ifdef __HP_aCC + // Don't cast to _RefT on HP aCC due to ICE (see STDCXX-1005) _RW::__rw_construct (&*__res, *__first); +#endif // __HP_aCC } _CATCH (...) { _RW::__rw_destroy (__start, __res);