
6 May
2008
6 May
'08
9:41 a.m.
Ed Keith wrote:
Is it possible to compare tokens in the preprocessors library?
What I mean is that I can say
#if (abc == abc) foo #else bar #endif
and it gives me foo
but if I say
BOOST_PP_IF(abc == abc, foo, bar)
I get an error.
I don't know the implementation of BOOST_PP_IF, but would this work any better? BOOST_PP_IF((abc == abc), foo, bar)