I'm trying to specialize a template method like this:
template <typename X, typename Y>
class A {
public:
void run(){};
};
template<typename Y>
void A<int, Y>::run() {}
But I get
main.cpp:70:17: error: nested name specifier 'A<int, Y>::' for declaration does not refer into a class, class template or class template partial specialization
I understand that the specialization isn't yet complete because I haven't instantiated it with a specific Y, but how can I do that?