Template specialisation

Nathan Sidwell nathan@codesourcery.com
Sun Jul 27 17:11:00 GMT 2003


Nick Newson wrote:
> The following example seems to instance the templated function incorrectly:

> 
> with the errors:
> 
> test.cpp:31: `float operator*(float, typeB) [with typeB = float]' must have
> an argument of class or enumerated type
> test.cpp:22: `float operator*(typeA, float) [with typeA = float]' must have
> an argument of class or enumerated type
This is a bug. Please file it in bugzilla

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Gcc-help mailing list