Usually, when A
is inheriting from B
, all the members of A
are automatically visible to B
\'s functions, for example
You can also do
class B : public A {
int getA() {return this->a;}
};
The problem is that the member is in a base, which depends on a template parameter. Normal unqualified lookup is performed at the point of definition, not at the point of instantiation, and therefore it doesn't search dependent bases.