Compiler Error C3182
'class' : a member using-declaration or access declaration is illegal within a managed or WinRTtype
A using declaration is invalid within all forms of managed classes.
The following sample generates C3182 and shows how to fix it.
// 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) {
}
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for