
On Dec 1, 2007 9:22 AM, Germán Diago
Hello. I'm trying to build a library and I'm doing heavy use of boost mpl and fusion libraries. I'd like to know a way to fill a boost::fusion::vector<> with the types contained in a boost::mpl::vector. Anyone knows how to do this? The code I have so far:
template
struct Func { //This is the initial sequence typedef typename boost::mpl::vector
sequence; //The sequence without NullTypes typedef typename boost::mpl::filter_view
> >::type validsequence; //The vector I want to fill with validsequence. Note that this is a fusion vector, not a mpl vector typedef boost::fusion::vector<> voidvector;
/***************PROBLEM HERE*******************/ //I want to copy validsequence types into voidvector typedef typename somewaytocopy::type type; };
Hi Germán,
I think the following might work (untested):
#include