Boost C++ Libraries: Ticket #1044: Argument pack inaccessable in a functions return type https://svn.boost.org/trac10/ticket/1044 <p> An argument pack can not currently be used within the return type of a Boost.Parameter enabled function. The following patch from Daniel Wallin fixes the issue: </p> <p> --- preprocessor.hpp 29 Sep 2006 00:31:28 -0000 1.5.2.9 +++ preprocessor.hpp 27 May 2007 16:01:40 -0000 @@ -149,7 +149,8 @@ </p> <blockquote> <p> , typename Parameters::deduced_list , tag_keyword_arg , mpl::false_ </p> </blockquote> <ul><li> &gt;::type type; </li></ul><p> + &gt;::type result; + typedef typename mpl::first&lt;result&gt;::type type; </p> <blockquote> <p> }; </p> </blockquote> <p> I also note that use of the argument pack within a BOOST_PARAMETER_FUNCTION-declared function is undocumented (but is supposed to be supported). </p> <p> Likewise I couldn't easily see any documentation on the names or the types of the parameters passed to such a function: the information is sort of there in the tutorial, but I had to resort to the preprocessed output to see what was going on. </p> <p> John Maddock. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1044 Trac 1.4.3 Daniel James Sun, 10 Jun 2007 08:57:30 GMT owner deleted https://svn.boost.org/trac10/ticket/1044#comment:1 https://svn.boost.org/trac10/ticket/1044#comment:1 <ul> <li><strong>owner</strong> <span class="trac-author">-</span> removed </li> </ul> <p> 'daniel' isn't Daniel Wallin, it's actually my old username which I changed to avoid confusion but it's stuck around, making things worse. Sorry. I don't think Daniel Wallin is registered. </p> Ticket John Maddock Fri, 15 Jun 2007 12:23:11 GMT attachment set https://svn.boost.org/trac10/ticket/1044 https://svn.boost.org/trac10/ticket/1044 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">parameter.diff</span> </li> </ul> <p> Daniel's Patch </p> Ticket John Maddock Fri, 15 Jun 2007 12:24:46 GMT owner, version set https://svn.boost.org/trac10/ticket/1044#comment:2 https://svn.boost.org/trac10/ticket/1044#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>version</strong> → <span class="trac-field-new">release 1.34.0</span> </li> </ul> Ticket Dave Abrahams Tue, 03 Jul 2007 14:02:40 GMT status changed https://svn.boost.org/trac10/ticket/1044#comment:3 https://svn.boost.org/trac10/ticket/1044#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Dave Abrahams Tue, 03 Jul 2007 14:14:10 GMT owner, status changed https://svn.boost.org/trac10/ticket/1044#comment:4 https://svn.boost.org/trac10/ticket/1044#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">Daniel Wallin</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Daniel Wallin Thu, 08 May 2008 20:04:25 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1044#comment:5 https://svn.boost.org/trac10/ticket/1044#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/45226" title="Fixed #1044. ArgumentPack is now available in the return type calculation">[45226]</a>) Fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1044" title="#1044: Bugs: Argument pack inaccessable in a functions return type (closed: fixed)">#1044</a>. <a class="missing wiki">ArgumentPack</a> is now available in the return type calculation </p> Ticket