What is the C++ syntax for specializing a template function that\'s inside a template class? For example, consider that I have the following two classes and their usage. I
Try
template <>
template
int X::template getAThing(std::string param)
{
return getIntThing(param);
}
This still doesn't compile, but it's closer than you had.
I think you can't specialize members en masse. You have to specify a particular specialization of the class template before you can start specializing its members.