]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
howto.html: Add entry for DR 103 [WP].
authorPaolo Carlini <pcarlini@suse.de>
Mon, 8 Mar 2004 15:04:11 +0000 (15:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 8 Mar 2004 15:04:11 +0000 (15:04 +0000)
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.

From-SVN: r79114

libstdc++-v3/ChangeLog
libstdc++-v3/docs/html/ext/howto.html
libstdc++-v3/include/bits/stl_multiset.h
libstdc++-v3/include/bits/stl_set.h

index b105ada1a2a5167357ffef59da6c60bd4683be43..5b1492bccae6a7a2fc476b1dd5ffca852e3c0e96 100644 (file)
@@ -1,3 +1,9 @@
+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):
index 41fe10b1548d427d9b5ebd1ee725ada5e8797a53..682b34e3b62df29bf30ebb4faadb6b8d5092cde8 100644 (file)
        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>
index c85dbcb754b96c7be519fba292297932b5a2a28f..887899670b76b28dd169fca8758d1f4a113961ff 100644 (file)
@@ -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;
index f5619ba8999120f43da8e04e0d88ba77e1876953..28e1a3ceb30de2cf6d752889b63e13e394e89142 100644 (file)
@@ -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;