|
Boost Users : |
From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-05-06 05:41:55
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)
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net