
1 Mar
2004
1 Mar
'04
1:58 p.m.
Guillaume Melquiond <guillaume.melquiond@ens-lyon.fr> writes: | 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 {}") I see. if (foo()) try { } catch (X) { } catch (Y) { } else bar(); is the problem... I do not see any other solution than another macro or requiring to but the try/catch in a block. if (foo()) { BOOST_TRY { } BOOST_CATCH(X) { } BOOST_CATCH(Y) { } } else bar(); -- Lgb