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
participants (2)
-
Joel de Guzman
-
Zachary Turner