1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Build don't link: template <class T> struct S {}; template <> struct S<int> { void f(); void g(); }; void S<int>::f() {} template <> void S<int>::g() {} // ERROR - does not match any template declaration