編譯器錯誤 C3182
'class' :Managed 或 WinRTtype 內的成員 using-declaration 或 access 宣告是非法的
using 宣告在所有 Managed 類別形式內無效。
下列範例會產生 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) {
}
};