I have a problem with template class inheritance. I have a base template class and a deriving class from the base class. I can not access the protected member of the base class in the derived class constructor. It gives that error:
prg.cpp: In constructor ‘ThresholdPrerequirement<T>::ThresholdPrerequirement(int)’:
prg.cpp:88: error: ‘_size’ was not declared in this scope
When I change the template classes to normal classes, then I can access the protected member with no problem.
What's wrong with this code?
Thanks.