stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r498491 - /incubator/stdcxx/trunk/include/valarray
Date Sun, 21 Jan 2007 23:40:52 GMT
Author: sebor
Date: Sun Jan 21 15:40:51 2007
New Revision: 498491

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

	* valarray (operator[]): Changed return type to const value_type&
	as per LWG issue 389:
	http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#389

Modified:
    incubator/stdcxx/trunk/include/valarray

Modified: incubator/stdcxx/trunk/include/valarray
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/valarray?view=diff&rev=498491&r1=498490&r2=498491
==============================================================================
--- incubator/stdcxx/trunk/include/valarray (original)
+++ incubator/stdcxx/trunk/include/valarray Sun Jan 21 15:40:51 2007
@@ -117,7 +117,7 @@
     valarray& operator= (const indirect_array<value_type>&);
 
     // 26.3.2.3 - element access
-    value_type operator[] (_RWSTD_SIZE_T __i) const {
+    const value_type& operator[] (_RWSTD_SIZE_T __i) const {
         _RWSTD_ASSERT (__i < size ());
         return _C_array[__i];
     }



Mime
View raw message