
14 Jul
2005
14 Jul
'05
8:52 p.m.
Arkadiy Vertleyb wrote:
One more option (probably an overkill):
#ifdef (BOOST_USE_TRAILING_SEMICOLON) # define BOOST_TRAILING_SEMICOLON ; #else # define BOOST_TRAILING_SEMICOLON #endif
Now end all your macro definitions with BOOST_TRAILING_SEMICOLON instead of ';', and the user can change the style with just one [un]define.
This would mean that in every code example using one of these macros, you'd have to add a note about BOOST_TRAILING_SEMICOLON. Jonathan