Boost C++ Libraries: Ticket #6912: [Phoenix V2] Add tr1_result_of specialization https://svn.boost.org/trac10/ticket/6912 <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.Phoenix V2 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 file specializes <code>result_of</code>. </p> <ul><li>spirit/home/phoenix/core/actor.hpp </li></ul><p> Here is a related ticket of Boost.Phoenix V3: <a class="assigned ticket" href="https://svn.boost.org/trac10/ticket/6911" title="#6911: Bugs: [Phoenix V3] Add tr1_result_of specialization (assigned)">#6911</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6912 Trac 1.4.3 Joel de Guzman Fri, 18 May 2012 00:25:08 GMT <link>https://svn.boost.org/trac10/ticket/6912#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6912#comment:1</guid> <description> <p> Phoenix V2 is in maintenance mode and is superseded by V3. I don't think it is a good idea to change the code unless it is a real showstopper. Use V3 instead. </p> </description> <category>Ticket</category> </item> <item> <author>Nikita Kniazev <nok.raven@…></author> <pubDate>Mon, 18 Dec 2017 00:38:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6912#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6912#comment:2</guid> <description> <p> Phoenix V2 gone since <a class="ext-link" href="https://github.com/boostorg/spirit/commit/c0537c8251d04773a24bafdab8363b1cba350d07"><span class="icon">​</span>https://github.com/boostorg/spirit/commit/c0537c8251d04773a24bafdab8363b1cba350d07</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Mon, 18 Dec 2017 23:22:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6912#comment:3 https://svn.boost.org/trac10/ticket/6912#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> Ticket