Boost C++ Libraries: Ticket #6910: [Fusion] Add tr1_result_of specialization https://svn.boost.org/trac10/ticket/6910 <p> To make <code>result_of</code> and <code>tr1_result_of</code> equivalent, we have to add specialization of <code>tr1_result_of</code>. (Boost.Fusion already has specialization of <code>result_of</code>.) </p> <p> Also, it would be nice to avoid specialization of <code>result_of</code>, when we use decltype-based <code>result_of</code>. (As for <code>tr1_result_of</code>, it should be specialized even when decltype-based <code>result_of</code> is used.) </p> <p> So, instead of </p> <pre class="wiki">template &lt;...&gt; struct result_of&lt;F()&gt; { typedef XXXX type; }; </pre><p> we should write </p> <pre class="wiki">#if !defined(BOOST_RESULT_OF_USE_DECLTYPE) || defined(BOOST_NO_DECLTYPE) template &lt;...&gt; struct result_of&lt;F()&gt; { typedef XXXX type; }; #endif template &lt;...&gt; struct tr1_result_of&lt;F()&gt; { typedef XXXX type; }; </pre><p> A quick grep said the following files specialize <code>result_of</code>. </p> <ul><li>fusion/functional/adapter/unfused.hpp </li><li>fusion/functional/adapter/unfused_typed.hpp </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6910 Trac 1.4.3 Joel de Guzman Fri, 18 May 2012 00:26:34 GMT <link>https://svn.boost.org/trac10/ticket/6910#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6910#comment:1</guid> <description> <p> If you can prepare a patch, I'd be willing to apply it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Fri, 18 May 2012 12:11:24 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/6910 https://svn.boost.org/trac10/ticket/6910 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">fusion_tr1_result_of.patch</span> </li> </ul> Ticket Michel Morin Fri, 18 May 2012 12:11:54 GMT <link>https://svn.boost.org/trac10/ticket/6910#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6910#comment:2</guid> <description> <p> Patch attached. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Sat, 19 May 2012 01:18:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6910#comment:3 https://svn.boost.org/trac10/ticket/6910#comment:3 <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> patch applied. </p> Ticket