P
PLM
Hello, all.
I should lke to declare template function as following:
template <class TYPE>
TYPE Test() {return (TYPE)5; }
void main(void) {
int i; float f;
i = Func();
f = Func();
}
What is wrong with this?
What I receive from gcc is :
main.cpp:28: no matching function for call to `Func()'
Thanks ahead
Leon
I should lke to declare template function as following:
template <class TYPE>
TYPE Test() {return (TYPE)5; }
void main(void) {
int i; float f;
i = Func();
f = Func();
}
What is wrong with this?
What I receive from gcc is :
main.cpp:28: no matching function for call to `Func()'
Thanks ahead
Leon