Follow Us
Contribute
  • Register

Error C3210: (type) : access declaration can only be applied to a base class member

0 votes

A using declaration was specified incorrectly. Ex:


// compile with: /c
struct A {
protected:
   int i;
};

struct B {
   using A::i;   // C3210
};

requested 7 years ago by errorbase (170,010 points)

2 Solutions

0 votes

This article is a derivative work based on http://msdn.microsoft.com/en-us/library/wfzydf8e.aspx" title="http://msdn.microsoft.com/en-us/library/wfzydf8e.aspx" target="_blank">Compiler Error C3210 which is provided by http://msdn.microsoft.com/en-us/library/60k1461a.aspx" title="http://msdn.microsoft.com/en-us/library/60k1461a.aspx" target="_blank">MSDN Community Content - Visual C++.

solved 7 years ago by errorbase (170,010 points)
0 votes

Possible resolution:


// compile with: /c
struct A {
protected:
   int i;
};

struct B : pulic A {
   using A::i;   
};

solved 7 years ago by errorbase (170,010 points)

Related errors