Compiler Error C2877
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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 {
   int a;

class B : public A {
   using A::a;   // C2877
© 2015 Microsoft