Kompilatorfel C2310

catch-hanterare måste ange en typ

Anmärkningar

En catch-hanterare har inte angett någon typ eller flera typer.

Example

I följande exempel genereras C2310:

// C2310.cpp
// compile with: /EHsc
#include <eh.h>
int main() {
   try {
      throw "Out of memory!";
   }
   catch( int ,int) {}   // C2310 two types
   // try the following line instead
   // catch( int)  {}
}