Boost C++ Libraries: Ticket #4489: References to function object types https://svn.boost.org/trac10/ticket/4489 <p> The current implementation of boost::result_of doesn't permit Fn in boost::result_of&lt;Fn(Args...)&gt; to be a reference to a class type. I would like to see that changed. Allowing reference-qualified function object types would be in useful with c++11's explicit reference qualification of member functions (n3090 / 13.3.1/4), and this change would bring boost::result_of more in line with c++11's std::result_of, which does allow "reference[s] to function object type[s]" (n3090 / 20.7.6.6) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4489 Trac 1.4.3 Christopher Schmidt Thu, 29 Jul 2010 17:02:49 GMT owner changed https://svn.boost.org/trac10/ticket/4489#comment:1 https://svn.boost.org/trac10/ticket/4489#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Douglas Gregor</span> </li> </ul> Ticket Christopher Schmidt Fri, 30 Jul 2010 12:35:46 GMT <link>https://svn.boost.org/trac10/ticket/4489#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4489#comment:2</guid> <description> <p> "The current implementation of boost::result_of permits Fn in boost::result_of&lt;Fn(Args...)&gt;"... </p> <p> oh, there is a mistake in there. Of course I meant that the current implementation of boost::result_of <strong>does not</strong> permit Fn in boost::result_of&lt;Fn(Args...)&gt;"... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 03 Jun 2012 20:41:25 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/4489#comment:3 https://svn.boost.org/trac10/ticket/4489#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/4489?action=diff&amp;version=3">diff</a>) </li> </ul> Ticket Michel Morin Mon, 04 Jun 2012 10:39:46 GMT owner changed https://svn.boost.org/trac10/ticket/4489#comment:4 https://svn.boost.org/trac10/ticket/4489#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Daniel Walker</span> </li> </ul> Ticket Michel Morin Mon, 04 Jun 2012 10:43:09 GMT <link>https://svn.boost.org/trac10/ticket/4489#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4489#comment:5</guid> <description> <p> Boost's decltype-based <code>result_of</code> already accepts references to function objects. Users can explicitly enable decltype-based <code>result_of</code> by defining <code>BOOST_RESULT_OF_USE_DECLTYPE</code>. Or, in the trunk code, it is automatically enabled when a compiler supports N3276 decltype (e.g. clang-3.1). </p> <p> For example, on clang-3.1 with the following functor: </p> <pre class="wiki">struct F { short operator()(int) &amp; { return 0; } float operator()(int) &amp;&amp; { return 0; } }; </pre><ul><li><code>boost::result_of&lt;F&amp; (int)&gt;::type</code> evaluates to <code>short</code>. </li><li><code>boost::result_of&lt;F&amp;&amp;(int)&gt;::type</code> evaluates to <code>float</code>. </li></ul><p> Is this enough for you? Or, do you want this feature in tr1-style <code>result_of</code>? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 01 Sep 2012 21:02:48 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/4489#comment:6 https://svn.boost.org/trac10/ticket/4489#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> We could update the old TR1 protocol to handle references to function objects, but that would take some refactoring. It could be done at the same time as refactoring for <a class="new ticket" href="https://svn.boost.org/trac10/ticket/6731" title="#6731: Bugs: decltype-based boost::result_of does not conform to std::result_of (new)">#6731</a>... But updating TR1 result_of is lower priority. </p> <ul><li>Daniel Walker </li></ul> Ticket Michel Morin Tue, 25 Sep 2012 14:02:54 GMT component changed https://svn.boost.org/trac10/ticket/4489#comment:7 https://svn.boost.org/trac10/ticket/4489#comment:7 <ul> <li><strong>component</strong> <span class="trac-field-old">utility</span> → <span class="trac-field-new">result_of</span> </li> </ul> Ticket