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


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

Re: Question about operator!=() in stl_relops.h


"George T. Talbot" <george@moberg.com> writes:

| I have a problem with the old standard C++ library (g++-3, not g++-v3).
| 
| from stl_relops.h:
| 
| template <class _Tp>
| inline bool operator!=(const _Tp& __x, const _Tp& __y) {
|   return !(__x == __y);
| }

This should be in namespace std::rel_ops.  For some reasons
(presumably because the entire library is not namespaced) it isn't.
Forcing it to be really in std::rel_ops (i.e. ::rel_ops) would be an
ABI change.  I'm not sure we are wanting that.  But on the other hand,
we're breaking conforming codes.  What do people think?

-- Gaby

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