Code:
template struct A { void f1() {}; void f2() {}; }; template<> struct A { void f2() {}; }; int main() { A<
Would this help:
template struct A { void f1() { // generic implementation of f1 } void f2() { // generic implementation of f2 } }; template<> void A::f2() { // specific implementation of f2 }