summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-20 10:05:48 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-20 10:05:48 +0000
commit04a4ddc573f4b265f0419362e10c4fd90cedaace (patch)
tree9cdefe238e47c4a2838dd19024c8ce57c97dc50a /libstdc++-v3/include/std
parentd9e1941911d3bb1faccfc665db2f654ca42e2c91 (diff)
downloadgcc-04a4ddc573f4b265f0419362e10c4fd90cedaace.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std')
-rw-r--r--libstdc++-v3/include/std/std_valarray.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libstdc++-v3/include/std/std_valarray.h b/libstdc++-v3/include/std/std_valarray.h
index 1b078437452..b893b335415 100644
--- a/libstdc++-v3/include/std/std_valarray.h
+++ b/libstdc++-v3/include/std/std_valarray.h
@@ -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:
/**