Question about operator!=() in stl_relops.h

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Mon Apr 3 12:23:00 GMT 2000


"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


More information about the Gcc mailing list