2009/6/24 Andrey Torba
<andreytorba@gmail.com>
BOOST_MPL_ASSERT((is_same<
mpl::vector<int, char>,
generate_mpl_vector<fusion::vector<int, char> >::type >));
generate_mpl_vector is boost::fusion::result_of::as_vector. I'm not sure if the result satisfies is_same<mpl::vector<...>, res>, but at least it's mpl::equal<mpl::vector<...>, res>.
As to reverse conversion, I don't think there is a function for it, but usually one doesn't need it. Including boost/fusion/include/mpl.hpp makes all mpl sequences fusion sequences, so you can use mpl::vector<...> where fusion::vector<...> is expected.
Roman Perepelitsa.