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
This commit is contained in:
Paolo Carlini 2004-03-20 10:05:48 +00:00 committed by Paolo Carlini
parent dbf833ee11
commit 2787b59a7f
3 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,8 @@
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>
* config/cpu/mips/atomicity.h: Prevent reg loads between LL and

View File

@ -479,6 +479,12 @@
<dd>Change the format string to &quot;%.0Lf&quot;.
</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>:
<em>Wrong new expression in [some_]allocator::construct</em>
</dt>

View File

@ -214,20 +214,17 @@ namespace std
operator= (const _Expr<_Dom,_Tp>&);
// _lib.valarray.access_ element access:
// XXX: LWG to be resolved.
/**
* 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.
* @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.
_Tp& operator[](size_t);
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 389. Const overload of valarray::operator[] returns by value.
const _Tp& operator[](size_t) const;
// _lib.valarray.sub_ subset operations:
/**