Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-01-21 09:24:42


AlisdairM wrote:
> I am far from a preprocessor expert though, and wonder what other tests
> I should look at before pushing this update?

Well, I would not call myself an expert either and I don't know if this post
should affect your update plans.
Anyway: since you seem to have that new compiler installed I would find it
interesting to know whether the "tuple testers" in the detail directory of
Boost.Preprocessor work as expected now (they did not work with older versions of
the Borland preprocessor):

     #include <boost/preprocessor/detail/is_nullary.hpp>
     #include <boost/preprocessor/detail/is_unary.hpp>
     #include <boost/preprocessor/detail/is_binary.hpp>

     BOOST_PP_IS_NULLARY(foo) // should expand to 0
     BOOST_PP_IS_UNARY(foo) // should expand to 0
     BOOST_PP_IS_BINARY(foo) // should expand to 0

     BOOST_PP_IS_NULLARY(()) // should expand to 1
     BOOST_PP_IS_UNARY((foo)) // should expand to 1
     BOOST_PP_IS_BINARY((foo,bar)) // should expand to 1

Regards,

Tobias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk