R
Ricky Lung
VC++6 doesn't let me call the templated function with explicit template
parameter, how to solve it? Any tricks? Thanks.
class Foo {
public:
template<typename T>
T test() {
return T(0);
}
};
int main()
{
Foo foo;
int a = foo.test<int>(); // <-- Failed here
return 0;
}
~ Let us linux ~
parameter, how to solve it? Any tricks? Thanks.
class Foo {
public:
template<typename T>
T test() {
return T(0);
}
};
int main()
{
Foo foo;
int a = foo.test<int>(); // <-- Failed here
return 0;
}
~ Let us linux ~