18 Jun
2007
18 Jun
'07
12:17 p.m.
Tobias Schwinger
This also works:
#include
#include #define SPECIAL #define IS_SPECIAL(x) BOOST_PP_IS_EMPTY(BOOST_PP_EMPTY() x)
Yep, that's even better as it allows x to be anything. Got some idea how portable it is?
I'm not a preprocessor guru, but it works for msvc 8.0 and gcc 3.4. Roman Perepelitsa