例如:
if (true) try { // works as expected with both true and false, but is it legal? } catch (...) { // ... }
换句话说,将if -block放在if条件之后是否合法?
c++ exception try-catch language-lawyer
c++ ×1
exception ×1
language-lawyer ×1
try-catch ×1