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: [Patch] Remove fpos<>::operator== and !=


Paolo Carlini wrote:

Mark Mitchell wrote:

I don't know exactly what source/binary constraints libstdc++ is
operating under, but that seems like an incompatible change, as
"pos::operator==(-1)" will presumably no longer work?

Indeed, the standard only requires operator== on those objects being an equivalence relation. The requirements are generally very, very, loose. In any case, there are quite a few comments in the file, with specific citations to the standard.

To be more clear: I mentioned the standard, because, according to it, an operator== is not even required, it's only specified that *comparing* those objects must be an equivalence relation.


Paolo.


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