From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-01-29 11:28:15
Paul Mensonides wrote:
> )(1)( EXPENSIVE_MACRO_INVOCATION() )
> ...where EXPENSIVE_MACRO_INVOCATION() is only invoked if 'n' is 0.
Guessing from the overtone of your comment it would be better to say
BOOST_PP_IF(n, BOOST_PP_TUPLE_EAT(0), EXPENSIVE_MACRO_INVOCATION)()
to be on the safe side with less compliant preprocessors. Correct?
--- #define MACRO(x) x MACRO(BOOST_PP_EMPTY()) BTW. is this special case safe (theoretically and practically, that is)? Regards, Tobias