I can not access the member data "value" defined in the template class from the specialized one. Why? Some one can help me? Thanks
template <class T>
class A {
public:
int value;
A() {
value = 0;
}
};
template <> class A<int> {
public:
A() {
value = 3; // Use of undeclared identifier 'value'
A::value = 3; // No member named 'value' in 'A<int>'
this->value = 3; // No member named 'value' in 'A<int>'
}
};