Opened 14 years ago

Last modified 13 years ago

#2915 new Feature Requests

Request for allowing ParameterSpec to be defined by an MPL sequence

Reported by: e_r Owned by: Daniel Wallin
Milestone: Boost 1.39.0 Component: parameter
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

May I please suggest that a metafunction be provided that maps an mpl sequence such as

typedef mpl::vector<r1,...,rn> IN;

each r is of the form required<T> or required<T,P>

to the template class boost::parameter::parameters instantiated with the elements of that sequence:

typedef parameter::parameters<

r1, ... rn

OUT;

This need arises when we can generate IN automatically, for example:

typedef mpl::transform<range_c<1,n+1>,meta_r>::type IN;

Thanks.

Change History (1)

in reply to:  description comment:1 by e_r, 13 years ago

Replying to e_r:

May I please suggest that a metafunction be provided that maps an mpl sequence such as

typedef mpl::vector<r1,...,rn> IN;

each r is of the form required<T> or required<T,P>

to the template class boost::parameter::parameters instantiated with the elements of that sequence:

typedef parameter::parameters<

r1, ... rn

OUT;

This need arises when we can generate IN automatically, for example:

typedef mpl::transform<range_c<1,n+1>,meta_r>::type IN;

Thanks.

Still on this problem. I'm wondering if mpl::unpack_args could to solve it.

Note: See TracTickets for help on using tickets.