Compiler Error C3152
'construct' : 'keyword' can only be applied to a class, struct, or virtual member function
Certain keywords can only be applied to a C++ class.
The following sample generates C3152 and shows how to fix it:
// C3152.cpp
// compile with: /clr /c
ref class C {
int (*pfn)() sealed; // C3152
virtual int g() sealed; // OK
};
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