This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: template mem fun problem gcc-3.0.2


"Neal D. Becker" wrote:

> I may be mistaken, but I thought that the for a template function

//

> X x = c.f<X> (w)
>
> Is this not correct?  If it is correct, isn't my code correct and
> should not give any error?

Yes, it is perfectly correct... but in the code posted you forgot to put the
equal sign in between "x" and "c.f<X> (w)", that is:

      double y iir.Compute<double> (x);

vs

      double y = iir.Compute<double> (x);

:-)

Cheers,
Paolo



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]