Compiler Error C2353
exception specification is not allowed
Exception specifications are not allowed on member functions of managed classes.
The following sample generates C2353:
// C2353.cpp
// compile with: /clr /c
ref class X {
void f() throw(int); // C2353
void f(); // 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