I have error "expected primary-expression before 'int'" and "expected ';' before 'int'" in this code, does anyone know why?
struct cpu
{
template<class T> static void fce() {}
};
template<class _cpu>
struct S
{
void fce()
{
_cpu::fce<int>(); //error: expected primary-expression before 'int'
//error: expected ';' before 'int'
}
};
int main()
{
S<cpu> s;
s.fce();
}