Boost logo

Boost Users :

Subject: Re: [Boost-users] Fusion container from MPL typelist?
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-07-17 22:45:51


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net