B Search Erros
Return Home
Newest questions tagged c++ - Stack Overflow

Is 'template <> void foo(int)' a valid specialization for 'template<typename T> void foo(T)'? [duplicate]

"C++ Primer, 5th Edition" says that this is the correct syntax to specialize a template function: template void foo(T) {} template void foo(int) {} While coding, by accident I wrote something like template void foo(i

View original source