I made a template class like this:
template<class identifier>
class myclass
{
public:
void function();
};
and I want to define the function in a cpp file but I cant figure out how to do this. I tried this:
template<class identifier>
myclass::function()
{
//---
}
but I get the error - use of template requires template argument list.
Is there any way I can define the functions for the class in a cpp file or would I just need to do it in the header?
thanks,