Boost logo

Boost Users :

From: Tim St. Clair (timothysc_at_[hidden])
Date: 2008-02-04 14:27:20


Is there a MACRO which returns a constant when evaluating the size of an mpl
sequence.

Here is what I'm trying to do:

#define MY_MACRO (N) CREATE_FOO_BAR_FN##N

#define SUPERFUNK (CLASSA, ...)\
     CLASSA { \
          typedef mpl::vector<__VA_ARGS__> v0; \
          MY_MACRO ( ??SOME_BOOST_MACRO??(mpl::size<v0>::value) ) \
    } \

If seems like this should be possible given that I can do the following:

BOOST_MPL_ASSERT_RELATION(mpl::size<v0>::value, ==, 0);

-- 
Regards,
Timothy St. Clair
[timothysc_at_[hidden]]


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