From: Paolo Carlini Date: Mon, 8 Mar 2004 15:04:11 +0000 (+0000) Subject: howto.html: Add entry for DR 103 [WP]. X-Git-Tag: releases/gcc-4.0.0~9547 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d4eb925b93b85ffc9866edd2d889930b33ef1b4;p=thirdparty%2Fgcc.git howto.html: Add entry for DR 103 [WP]. 2004-03-08 Paolo Carlini * 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b105ada1a2a5..5b1492bccae6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-03-08 Paolo Carlini + + * 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 * include/bits/locale_facets.tcc (money_get<>::_M_extract): diff --git a/libstdc++-v3/docs/html/ext/howto.html b/libstdc++-v3/docs/html/ext/howto.html index 41fe10b1548d..682b34e3b62d 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 gcount). +
103: + set::iterator is required to be modifiable, but this allows + modification of keys. +
+
For associative containers where the value type is the same as + the key type, both iterator and const_iterator + are constant iterators. +
+
109: Missing binders for non-const sequence elements
diff --git a/libstdc++-v3/include/bits/stl_multiset.h b/libstdc++-v3/include/bits/stl_multiset.h index c85dbcb754b9..887899670b76 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 f5619ba89991..28e1a3ceb30d 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;