RE: gcc 4.* template question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tao,

I believe you cannot specify your template specialization in the body of the template class itself.

If you pull the specialization out of the class...

template<>
double MScalar<double, float64>::mod(double arg1, double arg2)
{
  return arg1;
}

...things should compile.  Assuming that "float64" is declared somewhere.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux