Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
'type1' : is caught by reference ('type2') on line number
The exception type has two handlers. The type for the second catch is a reference to the type of the first.
The following sample generates C2313:
// C2313.cpp
// compile with: /EHsc
#include <eh.h>
class C {};
int main() {
try {
throw "ooops!";
}
catch( C& ) {}
catch( C ) {} // C2313
}