Compiler Error C2876
'class::symbol' : not all overloads are accessible
All overloaded forms of a function in a base class must be accessible to the derived class.
The following sample generates C2876:
// C2876.cpp
// compile with: /c
class A {
public:
double a(double);
private:
int a(int);
};
class B : public A {
using A::a; // C2876 one overload is private in base class
};
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