编译器错误 C2319

“try/catch”后面必须有复合语句。 缺少“{”

trycatch 语句后面未找到 trycatch 块。 块必须括在大括号内。

下面的示例生成 C2319:

// 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 ) {}
}