Template operator compile error in 3.0.4, not in 2.95.2

Phil Edwards phil@jaj.com
Fri May 17 09:15:00 GMT 2002


On Fri, May 17, 2002 at 09:45:05AM -0500, Dave Williss wrote:
> My remaining question is "why is this an error and not a warning?"
> 
> > edittabg.c:7796: choosing `bool FIXEDSTRING<_T>::operator==(const
> UNICODE*)
> >    const [with long unsigned int _T = 16]' over `operator=='
> > edittabg.c:7796:   because worst conversion for the former is better than
> > worst
> >    conversion for the latter
> >
> > Why is this an error?  I _want_ it to choose the template's == operator.

Some of us have been asking for months and have never gotten a good
explanation...  And unfortunately, there's no way to turn the message off.

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Gcc-bugs mailing list