
28 Sep
2006
28 Sep
'06
4:49 p.m.
On 09/27/2006 08:08 AM, Larry Evans wrote: [snip]
I'm wondering what implications this would have for fusion containers. [snip] to implement a variadic template fusion list. However, the fusion vector uses BOOST_PP_ENUM* to generate member names. To do that BOOST_PP_ENUM* requires the length of the variadic template typelist, information not available at preprocessing time. Hence, I'm wondering how a variadic template fusion vector would be implemented. Any ideas?
I guess the answer is suggested by: fusion/sequence/conversion/detail/as_vector.hpp. In that file, the preprocessor vertical repetition code generates a specialization for each N and that N can be the result of mpl::size<V>::value where V is some mpl::vector<T1,...,TN>.