C++: Declaration of template class member specialization (+ Doxygen bonus question!)
- by Ziv
When I specialize a (static) member function/constant in a template class, I'm confused as to where the declaration is meant to go.
Here's an example of what I what to do - yoinked directly from IBM's reference on template specialization:
template<class T> class X {
public:
static T v;
static void f(T);
};
template<class T> T…