I\'m sure that it is possible but I just can\'t do it, which is: How can I define function template inside non-template class? I tryied something like this:
clas
Don't put the
after the function name. This should work:
template
void Stack_T::put(const T& obj)
{
}
This still won't work if the function definition is not in the header file. To solve this, use one of: