This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Iterator "convertable to" problem


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]