This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Iterators for basic_string/vector
- To: Chip Salzenberg <chip@perlsupport.com>
- Subject: Re: Iterators for basic_string/vector
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Mon, 11 Jan 1999 13:35:28 -0800 (pst)
- cc: kabatek@Chemie.UNI-Halle.DE, libstdc++-v3@cygnus.com
> According to Benjamin Kosnik:
> > I don't really see any real reason to have separate classes for
> > const_iterator and iterator.
>
> Perhaps I've misunderstood you:
>
> void foo (collection::const_iterator it)
> { *it = 0; }
>
> You don't think that's worth a compile-time error?
I do. See Nathan's comments.
-Benjamin