Boost logo

Boost Users :

From: Ed Keith (e_d_k_at_[hidden])
Date: 2008-05-05 21:39:40


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.

Is it possible to do something like this? If so, what
am I doing wrong?

Thank you,

   -EdK

Ed Keith
e_d_k_at_[hidden]

Blog: edkeith.blogspot.com

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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