Boost C++ Libraries: Ticket #4358: Add BOOST_PP_ENUM_TRINARY_PARAMS() https://svn.boost.org/trac10/ticket/4358 <p> I'd like to have a generalization of BOOST_PP_ENUM_BINARY_PARAMS() to 3 parts. This would be useful to generate the parameters of a function like </p> <pre class="wiki">template &lt;typename F1, typename T1, ...&gt; int CompareFields(F1 T1::*f1, ..., FN TN::*fN); </pre><p> which can't (unless I'm missing something) be easily generated currently. And looking at <code>boost/preprocessor/repetition/enum_binary_params.hpp</code> implementing this manually doesn't look very simple so it would be nice if the library could provide it. </p> <p> I could (try to) make a patch adding this myself if it has any chance of being accepted, please let me know if it would be. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4358 Trac 1.4.3 Steven Watanabe Fri, 18 Jun 2010 13:28:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4358#comment:1 https://svn.boost.org/trac10/ticket/4358#comment:1 <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">wontfix</span> </li> </ul> <p> You can use BOOST_PP_ENUM which is completely general. If you really want to implement ENUM_TERNARY_PARAMS (including documentation and tests) I suppose it wouldn't hurt to add it, but I don't think it's worth the effort. </p> Ticket Steven Watanabe Fri, 18 Jun 2010 13:28:53 GMT component changed https://svn.boost.org/trac10/ticket/4358#comment:2 https://svn.boost.org/trac10/ticket/4358#comment:2 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">preprocessor</span> </li> </ul> Ticket