stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r526954 - /incubator/stdcxx/trunk/include/rw/_specialized.h
Date Mon, 09 Apr 2007 23:39:33 GMT
Author: sebor
Date: Mon Apr  9 16:39:33 2007
New Revision: 526954

URL: http://svn.apache.org/viewvc?view=rev&rev=526954
Log:
2007-04-09  Martin Sebor  <sebor@roguewave.com>

	STDCXX-390
	* _specialized.h (__rw_construct): Removed const qualification from
	second parameter and let the compiler deduce the cv-qualifier from
	the actual argument.

Modified:
    incubator/stdcxx/trunk/include/rw/_specialized.h

Modified: incubator/stdcxx/trunk/include/rw/_specialized.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/rw/_specialized.h?view=diff&rev=526954&r1=526953&r2=526954
==============================================================================
--- incubator/stdcxx/trunk/include/rw/_specialized.h (original)
+++ incubator/stdcxx/trunk/include/rw/_specialized.h Mon Apr  9 16:39:33 2007
@@ -81,7 +81,7 @@
 
 template <class _TypeT, class _TypeU>
 inline void
-__rw_construct (_TypeT* __p, const _TypeU& __val)
+__rw_construct (_TypeT* __p, _TypeU& __val)
 {
     ::new (_RWSTD_STATIC_CAST (void*, __p)) _TypeT (__val);
 }
@@ -89,7 +89,7 @@
 
 template <class _TypeT, class _TypeU>
 inline void
-__rw_construct (volatile _TypeT* __p, const _TypeU& __val)
+__rw_construct (volatile _TypeT* __p, _TypeU& __val)
 {
     // remove volatile before invoking operator new
     __rw_construct (_RWSTD_CONST_CAST (_TypeT*, __p), __val);
@@ -99,7 +99,7 @@
 
 template <class _TypeT, class _TypeU>
 inline void
-__rw_construct_impl (_TypeT* __p, const _TypeU& __val)
+__rw_construct_impl (_TypeT* __p, _TypeU& __val)
 {
     ::new (_RWSTD_STATIC_CAST (void*, __p)) _TypeT (__val);
 }
@@ -107,7 +107,7 @@
 
 template <class _TypeT, class _TypeU>
 inline void
-__rw_construct (volatile _TypeT* __p, const _TypeU& __val)
+__rw_construct (volatile _TypeT* __p, _TypeU& __val)
 {
     // remove volatile before invoking operator new
     __rw_construct_impl (_RWSTD_CONST_CAST (_TypeT*, __p), __val);



Mime
View raw message