Boost logo

Boost Users :

From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2007-06-18 08:17:09


Tobias Schwinger <tschwinger <at> isonews2.com> writes:

> > This also works:
> >
> > #include <boost/preprocessor/facilities/is_empty.hpp>
> > #include <boost/preprocessor/empty.hpp>
> >
> > #define SPECIAL
> > #define IS_SPECIAL(x) BOOST_PP_IS_EMPTY(BOOST_PP_EMPTY() x)
> >
>
> Yep, that's even better as it allows x to be anything. Got some idea how
> portable it is?

I'm not a preprocessor guru, but it works for msvc 8.0 and gcc 3.4.

Roman Perepelitsa


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