Delen via


Compilerfout C2319

'try/catch' moet worden gevolgd door een samengestelde instructie. {ontbreekt

Opmerkingen

Een try of catch blok wordt niet gevonden na de try of catch instructie. Het blok moet tussen accolades staan.

Example

In het volgende voorbeeld wordt C2319 gegenereerd:

// C2319.cpp
// compile with: /EHsc
#include <eh.h>
class C {};
int main() {
   try {
      throw "ooops!";
   }
   catch( C ) ;    // C2319
   // try the following line instead
   // catch( C ) {}
}