Compiler Error C2877
'symbol' is not accessible from 'class'
All members derived from a base class must be accessible in the derived class.
The following sample generates C2877:
// C2877.cpp
// compile with: /c
class A {
private:
int a;
};
class B : public A {
using A::a; // C2877
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for