Boost logo

Boost :

From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2006-01-21 09:36:13


Tobias Schwinger wrote:

> 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

AFAICT this is correct now, with the BOOST_PP_CONFIG_STRICT() setting.

-- 
AlisdairM

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