Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 624 Bytes

compiler-error-c2876.md

File metadata and controls

30 lines (25 loc) · 624 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2876
Compiler Error C2876
11/04/2016
C2876
C2876
8b674bf1-f9f4-4a8e-8127-e884c1d1708f

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
};