
1 Mar
2004
1 Mar
'04
12:22 p.m.
Le lun 01/03/2004 à 12:58, Lars Gullik Bjønnes a écrit :
Guillaume Melquiond <guillaume.melquiond@ens-lyon.fr> writes:
| With this new definition of the macros, it seems to me you can't use | multiple catch (a handler sequence). But I don't see any way to define | the macros such that BOOST_TRY {} BOOST_CATCH(_) {} BOOST_CATCH(_) {} | works as expected. Adding a BOOST_TRY_END would solve the problem. But | maybe someone can find a better solution without adding any macro.
Would something that resulted in:
if (true) { } else if (false) { } else if (false) { }
No, you get the dangling-else problem back. It's why I was suggesting a BOOST_TRY_END to correctly close the "if" (for example, "else {}")
work?
try { } catch () { } catch () { }