Boost logo

Boost :

From: Jason McCarty (bclg_at_[hidden])
Date: 2005-07-19 15:42:56


Paul Mensonides wrote:
> 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.

But doesn't everybody wrap those in do-while loops? I.e.,
  #define FOO do { bar; baz; } while (false)

-- 
Jason McCarty <bclg_at_[hidden]>

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk