Condividi tramite


Errore del compilatore C2310

I gestori catch devono specificare un tipo

Osservazioni:

Un gestore catch non ha specificato alcun tipo o più tipi.

Example

L'esempio seguente genera l'errore 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)  {}
}