Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-02-14 15:57:25


Does anyone have a tool that would clarify what's
happening with some PP macros in, for example:

   boost/spirit/fusion/sequence/tuple.hpp

For example, could wave be used to sort-of trace through
the macro expansions to make the code easier to understand.

For instance, I'm guessing that:

         BOOST_PP_REPEAT_FROM_TO(
             2, FUSION_MAX_TUPLE_SIZE, FUSION_TUPLE_CONSTRUCTOR, _)

does for 2 to FUSION_MAX_TUPLE_SIZE what:

      explicit tuple(typename detail::call_param<T0>::type _0)
             : base_type(_0) {}

Does for a 1 argument CTOR. I could run it through cpp, but if there
are several nested macro calls, it probably wouldn't help much in
understand what's going on.

TIA.


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