-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Paul Johnson Sent: Thursday, June 30, 2005 6:20 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] supressing "extra ;" warnings with GCC 3.4
David Abrahams wrote:
Dave Steffen
writes: I claim that our macros and use thereof is A) correct and B) safe. It just so happens that these macro constructs occasionally expand to something that has an extra semicolon, which triggers a warning in GCC 3.4 that we haven't seen before.
The warning will be an error on other compilers. The semicolons aren't just "bad style;" they're illegal.
Uhh... why? Example?
I believe extra semicolons are illegal after namespace declarations and function definitions atleast. A semicolon in a function is an empty statement which is legal. Disclaimer: I am not a language lawyer, I just play one on email.