This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14410] Bug with implementation of set for const iterators in g++ ...
- From: "reichelt at igpm dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2004 08:51:19 -0000
- Subject: [Bug libstdc++/14410] Bug with implementation of set for const iterators in g++ ...
- References: <20040303161106.14410.areza123@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at igpm dot rwth-aachen dot de 2004-03-05 08:51 -------
Subject: Re: Bug with implementation of set for const
iterators in g++ ...
On 4 Mar, pcarlini at suse dot de wrote:
>
> ------- Additional Comments From pcarlini at suse dot de 2004-03-04 01:12 -------
> The issue was already presented in the past, for instance in:
>
> http://gcc.gnu.org/ml/gcc-bugs/2003-02/msg01402.html
>
> Basically, in the light of the resolution of DR 103 [WP], "...For associative
> containers where the value type is the same as the key type, both iterator and
> const_iterator are constant iterators...". Therefore, our current implementation
> is conforming.
Oops! Sorry for the confusion.
But to prevent that from happening again, shouldn't we add a comment
like "DR 103" to the typedefs of the iterators in question?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14410