#include using namespace std; template class blah { public: void foo(); }; template <> void blah<0,0>::foo() { cout<<"Both elements are zero"< void blah::foo() { cout<<"The right element is 1"< void blah::foo() { cout<<"It is something else"< zero; zero.foo(); blah<1,0> one; one.foo(); blah<2,2> two; two.foo(); }