Let's say I have the following class:
template<class T> struct A { static int value; }; template<class T> int A<T>::value = 0;
I can specialize A::value on a specific type without a problem:
struct B { }; template<> int A<B>::value = 1;
I would like to specialize the value of A :: for the template type, I tried the following:
template<class T> struct C { };
Is there a way to do this, or is it possible to specialize the value of A :: for types without templates?
c ++
Greg rogers
source share