|
Boost Users : |
Subject: Re: [Boost-users] [Fusion] Building parameter list for fusion::invoke
From: Vivek (vivek_at_[hidden])
Date: 2011-01-22 16:15:30
>
> 2011/1/22 Vivek <vivek_at_[hidden]>
> 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.
One alternative is to code-generate template specializations for a bunch of
arity and use the constructor like you suggested. But I feel the "arity code
generation" thing has been done so many times and so much better in boost
that I should be able to use a transform or invoke function to take
advantage of that. That's why I started trying to use fusion.
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