Code:
template
struct A {
void f1() {};
void f2() {};
};
template<>
struct A {
void f2() {};
};
int main() {
A<
When we declare specializations for a template class, we must also define all its members, even those exactly equal to the generic template class, because there is no inheritance of members from the generic template to the specialization. So, in your specialization you have to implement void f1();
too.