Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-09-28 12:49:07


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>.


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