Commit 2787b59a by Paolo Carlini Committed by Paolo Carlini

std_valarray.h: Document DR389 [Ready].

2004-03-20  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_valarray.h: Document DR389 [Ready].
	* docs/html/ext/howto.html: Add an entry for DR389.

From-SVN: r79733
parent dbf833ee
2004-03-20 Paolo Carlini <pcarlini@suse.de>
* include/std/std_valarray.h: Document DR389 [Ready].
* docs/html/ext/howto.html: Add an entry for DR389.
2004-03-19 Michael Eager <eager@mvista.com> 2004-03-19 Michael Eager <eager@mvista.com>
* config/cpu/mips/atomicity.h: Prevent reg loads between LL and * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
......
...@@ -479,6 +479,12 @@ ...@@ -479,6 +479,12 @@
<dd>Change the format string to &quot;%.0Lf&quot;. <dd>Change the format string to &quot;%.0Lf&quot;.
</dd> </dd>
<dt><a href="lwg-active.html#389">389</a>:
<em>Const overload of valarray::operator[] returns by value</em>
</dt>
<dd>Change it to return a <code>const T&amp;</code>.
</dd>
<dt><a href="lwg-active.html#402">402</a>: <dt><a href="lwg-active.html#402">402</a>:
<em>Wrong new expression in [some_]allocator::construct</em> <em>Wrong new expression in [some_]allocator::construct</em>
</dt> </dt>
......
...@@ -214,20 +214,17 @@ namespace std ...@@ -214,20 +214,17 @@ namespace std
operator= (const _Expr<_Dom,_Tp>&); operator= (const _Expr<_Dom,_Tp>&);
// _lib.valarray.access_ element access: // _lib.valarray.access_ element access:
// XXX: LWG to be resolved.
/** /**
* Return a reference to the i'th array element. * Return a reference to the i'th array element.
* *
* The C++ spec defines the const version to return Tp instead of
* the more useful const Tp&. This issue is being reviewed in DR389.
*
* @param i Index of element to return. * @param i Index of element to return.
* @return Reference to the i'th element. * @return Reference to the i'th element.
*/ */
const _Tp& operator[](size_t) const; _Tp& operator[](size_t);
/// Return a reference to the i'th array element. // _GLIBCXX_RESOLVE_LIB_DEFECTS
_Tp& operator[](size_t); // 389. Const overload of valarray::operator[] returns by value.
const _Tp& operator[](size_t) const;
// _lib.valarray.sub_ subset operations: // _lib.valarray.sub_ subset operations:
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment