Boost logo

Boost Users :

Subject: [Boost-users] Passing a vector to parameter::parameters (workaround)
From: er (erwann.rogard_at_[hidden])
Date: 2009-05-29 15:38:58


er wrote:
> Upon reflexion, my problem boils down to finding a metafunction that
> maps an mpl sequence, such as
>
> typedef mpl::vector<tag1,...,tagn> input;
>
> to the template class boost::parameter::parameters instantiated with
> the elements of that sequence, each wrapped with required:
>
> typedef parameter::parameters<
> required<tag1>,
> ...
> require<tagn>
> > output;
>
>
> The implementation of parameter::parameters uses a macro so unless I'm
> willing to/can generate input with macro it seems like a dead end. Correct?

Does mpl::unpack_args sound like a valid starting point?


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