Is if (condition) try {…} legal in C++?
The syntax of a try block (which is a statement in C++) is try compound-statement handler-sequence And the syntax of if is: attr(optional) if ( condition ) statement_true attr(optional) if ( condition ) statement_true else statement_false where: statement-true – any statement (often a compound statement), which is executed if condition evaluates to true statement-false – … Read more