Compiler Error C2706
illegal
__except
without matching__try
(missing '}' in__try
block?)
The compiler did not find a closing brace for a __try
block.
The following sample generates C2706:
// C2706.cpp
int main() {
__try {
void f();
// C2706 } missing here
__except(GetExceptionCode() == 0x0) {
}
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for