hi,
I just want to be sure..
I have made a template function as follow;
This is declared in my cpp file, so it is outside of my class now, and my class function is accessing this template function as if it is a glabol function. My question is should this "template function" be declared inside the class header just like any other c++ function as follow? But this doesn't support polymorphic!?Code:
template<typename V>
ProcessValue(const & V)
{
//....
}
Code:class MyClass
{
public:
template<typename V>
void ProcessValue(const & V);
}
void MyClass::ProcessValue(const & V data)
{
..............
}

