¿Es posible acceder a valores de parámetros de plantilla que no son de tipo en una clase de plantilla especializada?

¿Es posible acceder a valores de parámetros de plantilla que no son de tipo en una clase de plantilla especializada?

Este tipo de problema se puede resolver teniendo un conjunto separado de estructuras de "Características".

// A default Traits class has no information
template<class T> struct Traits
{
};

// A convenient way to get the Traits of the type of a given value without
// having to explicitly write out the type
template<typename T> Traits<T> GetTraits(const T&)
{
    return Traits<T>();
}

template <int major, int minor> struct A 
{ 
    void f() 
    { 
        cout << major << endl; 
    }   
};

// Specialisation of the traits for any A<int, int>
template<int N1, int N2> struct Traits<A<N1, N2> >
{
    enum { major = N1, minor = N2 };
};

template <> struct A<4,0> 
{       
    void f() 
    { 
        cout << GetTraits(*this).major << endl; 
    }   
};