2011/1/23 Vivek
2011/1/22 Vivek
Or alternatively, is there a direct way to initialize a fusion vector?
IIUC, its ctor just do the job, not?
The problem is I don't know the arity or parameter types of the function being called. I just have a source of data (which can be simplified to TYPE data = data_source<TYPE>().pop();) and arbitrary functions being passed in.
Sorry if I missed your point...here comes an idea:
Use Fusion's MPL sequences adapters, so you can have:
typedef typename
mpl::transform
<
parameter_types
, from_data_sourcempl::_1
, mpl::back_inserter