4 Feb
2008
4 Feb
'08
7:27 p.m.
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@gmail.com]