If BassClass (sic) and DerivedClass are templates, and the BassClass member that you want to access from DerivedClass is not specified as a dependent name, it will not be visible.
eg.
template <typename T> class BaseClass { protected: int value; }; template <typename T> class DerivedClass : public BaseClass<T> { public: int get_value() {return value;}
To access, you need to provide additional information. For example, you can specify the full name of the participant:
int get_value() {return BaseClass<T>::value;}
Or you can make it explicit that you are referring to a class member:
int get_value() {return this->value;}
Managu
source share