Fusion container from MPL typelist?

Suppose I have a boost::mpl::vector<...> and I want a boost::fusion::vector<...> whose types correspond exactly to the types in the mpl::vector. Is there a simple way to go about this? It seems like all the methods of constructing a fusion vector require me to manually specify the individual types as the parameters to fusion::vector<>.

Zachary Turner wrote:
Suppose I have a boost::mpl::vector<...> and I want a boost::fusion::vector<...> whose types correspond exactly to the types in the mpl::vector. Is there a simple way to go about this? It seems like all the methods of constructing a fusion vector require me to manually specify the individual types as the parameters to fusion::vector<>.
as_vector: http://tinyurl.com/nmx8z2 http://tinyurl.com/mbzt2n (be sure to #include <boost/fusion/include/mpl.hpp>) Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
participants (2)
-
Joel de Guzman
-
Zachary Turner