Compiler Error C3210
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3210.
type' : access declaration can only be applied to a base class member
A using declaration was specified incorrectly.
The following sample generates C3210.
// C3210.cpp
// compile with: /c
struct A {
protected:
int i;
};
struct B {
using A::i; // C3210
};
struct C : public A {
using A::i; // OK
};
Show: