[Boost-bugs] [Boost C++ Libraries] #2915: Request for allowing ParameterSpec to be defined by an MPL sequence

Subject: [Boost-bugs] [Boost C++ Libraries] #2915: Request for allowing ParameterSpec to be defined by an MPL sequence
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-05 16:25:43


#2915: Request for allowing ParameterSpec to be defined by an MPL sequence
------------------------------+---------------------------------------------
 Reporter: e_r | Owner: danielw
     Type: Feature Requests | Status: new
Milestone: Boost 1.39.0 | Component: parameter
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2915>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC