Boost logo

Boost Users :

From: Ed Keith (e_d_k_at_[hidden])
Date: 2008-05-06 06:17:22


--- Nat Goodspeed <nat_at_[hidden]> wrote:

> 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)

No, I tried that too.

Thanks anyway,

   -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