Compiler Error C2279
exception specification cannot appear in a typedef declaration
Under /Za, exception specifications are not allowed in a typedef declaration.
The following sample generates C2279:
// C2279.cpp
// compile with: /Za /c
typedef int (*xy)() throw(...); // C2279
typedef int (*xyz)(); // 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