Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/base35/errorbase.net/qa-include/qa-db.php on line 50
Error C3182: (class) : a member using-declaration or access declaration is illegal within a managed type - Errorbase
Follow Us
Contribute
  • Register

Error C3182: (class) : a member using-declaration or access declaration is illegal within a managed type

0 votes

A using declaration is invalid within all forms of managed classes. Ex:


// compile with: /clr /c
ref struct B {
   void mf(int) {
   }
};

ref struct D : B {
   using B::mf;   // C3182
   void mf(char) {
   }
};

requested 6 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/xseshdk4.aspx" title="http://msdn.microsoft.com/en-us/library/xseshdk4.aspx" target="_blank">Compiler Error C3182 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 6 years ago by errorbase (170,010 points)
0 votes

Possible resolution:


// compile with: /clr /c
ref struct B {
   void mf(int) {
   }
};

ref struct D : B {
   void mf(char) {
   }
};

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

Related errors