This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Iterator "convertable to" problem
- From: Martin Sebor <sebor at roguewave dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 17 Sep 2004 10:43:42 -0600
- Subject: Re: Iterator "convertable to" problem
- References: <414AFE83.2000905@cs.york.ac.uk>
chris jefferson wrote:
...
Does this seem to be a correct reading of the standard? Do we need nasty
static_casts all over the place?
A pedantic reading of the standard would suggest that you do in
fact need something like that in a number of other contexts as
well (e.g., in predicate tests). There was a discussion of this
problem on the reflector some time ago (see the thread starting
with c++std-lib-10365(*)). The prevailing opinion was that even
though nothing in the standard disallows such "subversive"
operators it has never been the intent to require implementations
to deal with them. Most people didn't think it was worth the
trouble to add text to disallow them.
Martin
* Use c++std-ping@accu.org to retrieve archived messages.