I\'m basically trying to do what was discussed in Template specialization of a single method from a templated class except that my TClass has multiple template Parameters li
You can fully specialize class method but as far as I remember you can't partially specialize it.
You can try partial specialization for the whole class but this will probably involve a lot of duplication.
You have to specialize the entire class before you define a method through a partial specialization:
template <typename T, typename U>
class TClass;
template <typename T>
class TClass<int, T>
{
void doSomething(int* v);
};
template <typename T>
void TClass<int, T>::doSomething(int* v)
{
// ...
}
Live demo