template class member function only specialization
I think it is referring to the following case: template <typename T> struct base { void foo() { std::cout << “generic” << std::endl; } void bar() { std::cout << “bar” << std::endl; } }; template <> void base<int>::foo() // specialize only one member { std::cout << “int” << std::endl; } int main() { base<int> i; … Read more