Boost C++ Libraries: Ticket #2915: Request for allowing ParameterSpec to be defined by an MPL sequence https://svn.boost.org/trac10/ticket/2915 <p> May I please suggest that a metafunction be provided that maps an mpl sequence such as </p> <blockquote> <p> typedef mpl::vector&lt;<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">r1</a>,...,rn&gt; IN; </p> </blockquote> <p> <em>each r is of the form required&lt;T&gt; or required&lt;T,P&gt; </em></p> <p> to the template class boost::parameter::parameters instantiated with the elements of that sequence: </p> <blockquote> <p> typedef parameter::parameters&lt; </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">r1</a>, ... rn </p> <blockquote class="citation"> <p> OUT; </p> </blockquote> </blockquote> </blockquote> <p> This need arises when we can generate IN automatically, for example: </p> <p> typedef mpl::transform&lt;range_c&lt;1,n+1&gt;,meta_r&gt;::type IN; </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2915 Trac 1.4.3 e_r Mon, 08 Jun 2009 01:31:21 GMT <link>https://svn.boost.org/trac10/ticket/2915#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2915#comment:1</guid> <description> <p> Replying to <a class="new ticket" href="https://svn.boost.org/trac10/ticket/2915" title="#2915: Feature Requests: Request for allowing ParameterSpec to be defined by an MPL sequence (new)">e_r</a>: </p> <blockquote class="citation"> <p> May I please suggest that a metafunction be provided that maps an mpl sequence such as </p> <blockquote> <p> typedef mpl::vector&lt;<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">r1</a>,...,rn&gt; IN; </p> </blockquote> <p> <em>each r is of the form required&lt;T&gt; or required&lt;T,P&gt; </em></p> <p> to the template class boost::parameter::parameters instantiated with the elements of that sequence: </p> <blockquote> <p> typedef parameter::parameters&lt; </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">r1</a>, ... rn </p> <blockquote class="citation"> <p> OUT; </p> </blockquote> </blockquote> </blockquote> <p> This need arises when we can generate IN automatically, for example: </p> <p> typedef mpl::transform&lt;range_c&lt;1,n+1&gt;,meta_r&gt;::type IN; </p> <p> Thanks. </p> </blockquote> <p> Still on this problem. I'm wondering if mpl::unpack_args could to solve it. </p> </description> <category>Ticket</category> </item> </channel> </rss>