How to generate fusion::vector from mpl::vector? How to generate
mpl::vector from fusion::vector?
BOOST_MPL_ASSERT((is_same<
fusion::vector,
generate_fusion_vector >::type >));
BOOST_MPL_ASSERT((is_same<
mpl::vector,
generate_mpl_vector >::type >));
I need generate_fusion_vector and generate_mpl_vector metafunctions. I
can write my own metafunctions, but i suspect that they already exist.
I generated fusion::map with help result_of::as_map before, so vector
generation is the same, but in current boost(trunk, 1.39 also) such
error occur:
D:\Libraries\boost_trunk\boost/fusion/sequence/intrinsic/size.hpp(56)
: error C2903: 'apply' : symbol is neither a class template nor a
function template
D:\Libraries\boost_trunk\boost/fusion/container/vector/convert.hpp(23)
: see reference to class template instantiation
'boost::fusion::result_of::size' being compiled
with
[
Sequence=boost::mpl::vector
]
temp.cpp(71) : see reference to class template instantiation
'boost::fusion::result_of::as_vector' being compiled
I don't understand what is going on?
--
Regards, Andrey