Export (0) Print
Expand All
Expand Minimize

Compiler Error C2602

'class::Identifier' is not a member of a base class of 'class'

Identifier cannot be accessed because it is not a member inherited from any base class.

Example

// C2602.cpp
struct X
{
   int x;
};
struct A
{
   int a;
};
struct B : public A
{
   X::x;       // C2602 B is not derived from X
   A::a;       // OK
};
Show:
© 2014 Microsoft