次の方法で共有


コンパイラ エラー C3182

'class': マネージド型または WinRT 型の中のメンバーの using 宣言または access 宣言は無効です。

注釈

using 宣言は、マネージド クラスのすべてのフォーム内で無効です。

Example

次の例では、C3182 を生成し、その修正方法を示します。

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

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