I\'m currently refactoring some code the explicitly specializes a member function of a class template with two template parameters.
template
You are correct, it is not possible.
What you can do is create a helper member class template inside the new Foo
, and place the specialized function inside it as a non-template member function. Specialize the helper class instead of the function.
Another alternative is to turn the specialization into a non-template overload.