Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
no try block associated with this catch handler
Remarks
A catch handler is defined but not preceded by a try block.
Example
The following example generates C2318:
// C2318.cpp
// compile with: /EHsc
#include <eh.h>
int main() {
// no try block
catch( int ) {} // C2318
}
Possible resolution:
// C2318b.cpp
// compile with: /EHsc
#include <eh.h>
int main() {
try{}
catch( int ) {}
}