From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Petzold To: GCC Mailing List Subject: stl_relops.h collision conflict Date: Tue, 11 Sep 2001 04:57:00 -0000 Message-id: <01091113315100.02113@gatekeeper> X-SW-Source: 2001-09/msg00406.html Hello, I'm writing an ET library. Unfortunally I'm gone into trouble with the stl internal header stl_relops.h from gcc: template inline bool operator>(const _Tp& __x, const _Tp& __y) { return __y < __x; } and my: template inline Xpr< XprBinOp< VectorReference, Functional::Greater, VectorReference > > operator>(const Vector& lhs, const Vector& rhs) { typedef XprBinOp< VectorReference, Functional::Greater, VectorReference > expr_type; return Xpr(expr_type(lhs.ref(), rhs.ref())); } Is there no way to force the compiler to use my implementation of operator>() ? 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 ? Thanks Olaf