|
Boost : |
From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2005-07-19 05:40:21
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Dave Steffen
> ... and what I attempted to say (and didn't very well) is
> that in places where null statements are allowed, yes,
> you're correct; the macro could include its own semicolon,
> and people who want add their own are allowed to....
>
> ... with a few exceptions. As has been pointed out,
>
> if (something)
> MACRO_INVOCATION();
> else
> ...
Incidentally, this should automatically be:
if (something) {
MACRO_INVOCATION(); // semicolon argument aside
}
else
...
Because if the macro expands to statement, it could just as easily expand to a
series of statements.
Regards,
Paul Mensonides
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk