Hi,
I want to use a template function that is used to convert strings to numeric types in a non-templated class. I have:
class Reader
{
...
template <class T>
T ConvertString (const std::string str);
};
Is it possible for me to define the template function in an implementation source file instead of defining it inside the class? I have been trying to do this but I've been getting an undefined reference error in gcc.
Thanks.