This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about operator!=() in stl_relops.h
- To: "George T. Talbot" <george at moberg dot com>
- Subject: Re: Question about operator!=() in stl_relops.h
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 03 Apr 2000 21:23:34 +0200
- Cc: libstdc++ List <libstdc++ at sourceware dot cygnus dot com>, gcc at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <38E8C657.625B482@moberg.com>
"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