Compartilhar via


Erro do compilador C2310

os manipuladores catch devem especificar um tipo

Um manipulador de captura não especificou nenhum tipo ou vários tipos.

A amostra a seguir gera 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)  {}
}