stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r704366 - /stdcxx/branches/4.2.x/include/rw/_specialized.h
Date Tue, 14 Oct 2008 07:53:13 GMT
Author: faridz
Date: Tue Oct 14 00:53:13 2008
New Revision: 704366

URL: http://svn.apache.org/viewvc?rev=704366&view=rev
Log:
2008-10-14  Martin Sebor  <sebor@roguewave.com>

	* include/rw/_specialized.h (uninitialized_copy): avoid
	const-qualifying ptr to prevent an HP aCC 3 bug (see STDCXX-1021).

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=704366&r1=704365&r2=704366&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_specialized.h (original)
+++ stdcxx/branches/4.2.x/include/rw/_specialized.h Tue Oct 14 00:53:13 2008
@@ -171,7 +171,8 @@
 
     _TRY {
         for (; __first != __last; ++__first, ++__res) {
-            volatile void* const __ptr =
+            // avoid const-qualifying ptr to prevent an HP aCC 3 bug
+            volatile void* /* const */ __ptr =
                 _RWSTD_STATIC_CAST (volatile void*, &*__res);
             ::new (_RWSTD_CONST_CAST (void*, __ptr)) _TypeT (*__first);
         }



Mime
View raw message