Wow! This is really great! Thanks for the great lib. -----Original Message----- From: Joel de Guzman [mailto:joel@boost-consulting.com] Sent: Wednesday, February 07, 2007 12:46 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [boost::fusion] set_c or vector_c in fusion? Ovanes Markarian wrote:
Hello all!
Does someone know if the fusion library has some analog to mpl::sec_c or mpl::vector_c?
All mpl sequences can be used in fusion. An mpl::set_c or vector_c, or even range_c are all usable in fusion. Just include the necessary files <boost/fusion/sequence/adapted/mpl.hpp> and you're done.
Or is there any way to pass mpl::set_c as a template parameter to fusion::set class?
If you want it converted, you simply write: fusion::set<...> fs = ms; where fs is your fusion set and ms is your mpl set. Here's an example (untested): typedef mpl::set_c<int,1,2,3> ms_type; fusion::result_of::as_set<ms_type>::type fs_type; fs_type fs = ms_type(); Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users