
19 Jul
2005
19 Jul
'05
9:05 p.m.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Jason McCarty
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)
I don't. I think that it increases the complexity of the macro for the only purpose of making the macro use look like its a regular syntactic element--which I don't think is a good idea, and therefore don't do it. Regards, Paul Mensonides