This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stl_relops.h collision conflict
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Subject: Re: stl_relops.h collision conflict
- From: Olaf Petzold <opetzold at wit dot regiocom dot net>
- Date: Wed, 12 Sep 2001 11:14:12 +0200
- References: <200109111725.KAA03669@racerx.synopsys.com>
Am Die, 11 Sep 2001 schrieben Sie:
> > I'm writing an ET library. Unfortunally I'm gone into trouble
> > with the stl internal header stl_relops.h from gcc:
>
> Please be specific about versions.
>
> > template <class _Tp>
> > inline bool operator>(const _Tp& __x, const _Tp& __y) {
> > return __y < __x;
> > }
>
> 2.95.x, egcs, or "2.96".
2.96 mandrake 8.0
> > On gcc-3.0.1 the relops header has an own inner namespace but, the problems
> > has been occoured in prior version as well. Is there a work around ?
>
> In 3.0.x or other ISO standard C++ compiler, if you avoid importing
> rel_ops with a using directive, you should have no problem.
That's right, no problem on using it but, worse code. See inliner problems. I
haven't checked Kurt's patch v3 yet.
Regards
Olaf