diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-08 15:04:11 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-08 15:04:11 +0000 |
commit | b52b8552642f118df390bca3c7bdce5e3bcdeaca (patch) | |
tree | 02929be6ab42e6d7e365452b044c2b780281dec6 | |
parent | fa305a1496266bdbe09696f18dabd520e67eeba4 (diff) | |
download | gcc-b52b8552642f118df390bca3c7bdce5e3bcdeaca.tar.gz |
2004-03-08 Paolo Carlini <pcarlini@suse.de>
* docs/html/ext/howto.html: Add entry for DR 103 [WP].
* include/bits/stl_multiset.h: Add comment about DR 103.
* include/bits/stl_set.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79114 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/docs/html/ext/howto.html | 9 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_multiset.h | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_set.h | 3 |
4 files changed, 21 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b105ada1a2a..5b1492bccae 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2004-03-08 Paolo Carlini <pcarlini@suse.de> + * docs/html/ext/howto.html: Add entry for DR 103 [WP]. + * include/bits/stl_multiset.h: Add comment about DR 103. + * include/bits/stl_set.h: Likewise. + +2004-03-08 Paolo Carlini <pcarlini@suse.de> + * include/bits/locale_facets.tcc (money_get<>::_M_extract): The value _space_ indicates that at least one space is required at that position. diff --git a/libstdc++-v3/docs/html/ext/howto.html b/libstdc++-v3/docs/html/ext/howto.html index 41fe10b1548..682b34e3b62 100644 --- a/libstdc++-v3/docs/html/ext/howto.html +++ b/libstdc++-v3/docs/html/ext/howto.html @@ -295,6 +295,15 @@ not required to set <code>gcount</code>). </dd> + <dt><a href="lwg-defects.html#103">103</a>: + <em>set::iterator is required to be modifiable, but this allows + modification of keys.</em> + </dt> + <dd>For associative containers where the value type is the same as + the key type, both <code>iterator</code> and <code>const_iterator + </code> are constant iterators. + </dd> + <dt><a href="lwg-defects.html#109">109</a>: <em>Missing binders for non-const sequence elements</em> </dt> diff --git a/libstdc++-v3/include/bits/stl_multiset.h b/libstdc++-v3/include/bits/stl_multiset.h index c85dbcb754b..887899670b7 100644 --- a/libstdc++-v3/include/bits/stl_multiset.h +++ b/libstdc++-v3/include/bits/stl_multiset.h @@ -128,6 +128,9 @@ namespace __gnu_norm typedef typename _Alloc::const_pointer const_pointer; typedef typename _Alloc::reference reference; typedef typename _Alloc::const_reference const_reference; + // _GLIBCXX_RESOLVE_LIB_DEFECTS + // DR 103. set::iterator is required to be modifiable, + // but this allows modification of keys. typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; diff --git a/libstdc++-v3/include/bits/stl_set.h b/libstdc++-v3/include/bits/stl_set.h index f5619ba8999..28e1a3ceb30 100644 --- a/libstdc++-v3/include/bits/stl_set.h +++ b/libstdc++-v3/include/bits/stl_set.h @@ -132,6 +132,9 @@ namespace __gnu_norm typedef typename _Alloc::const_pointer const_pointer; typedef typename _Alloc::reference reference; typedef typename _Alloc::const_reference const_reference; + // _GLIBCXX_RESOLVE_LIB_DEFECTS + // DR 103. set::iterator is required to be modifiable, + // but this allows modification of keys. typedef typename _Rep_type::const_iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::const_reverse_iterator reverse_iterator; |