Kompilatorfel C2309

catch-hanteraren förväntade sig en parentesiserad undantagsdeklaration

Anmärkningar

En catch-hanterare har ingen parentestyp.

Example

I följande exempel genereras C2309:

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