|
Boost Users : |
Subject: [Boost-users] [boost][fusion] generate mpl::vector from fusion::vector
From: Andrey Torba (andreytorba_at_[hidden])
Date: 2009-06-24 05:49:50
How to generate fusion::vector from mpl::vector? How to generate
mpl::vector from fusion::vector?
BOOST_MPL_ASSERT((is_same<
fusion::vector<int, char>,
generate_fusion_vector<mpl::vector<int, char> >::type >));
BOOST_MPL_ASSERT((is_same<
mpl::vector<int, char>,
generate_mpl_vector<fusion::vector<int, char> >::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
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