Boost C++ Libraries: Ticket #6914: [Lambda] Add result_of and tr1_result_of specializations for nullary function calls https://svn.boost.org/trac10/ticket/6914 <p> To support nullary-callable polymorphic function objects in C++03 <code>result_of</code>, we have to specialize <code>result_of</code> and <code>tr1_result_of</code> for the zero-argument case. (If we don't provide specializations, the type determined by C++03 <code>result_of</code> for zero-argument function calls is defaulted to void. See the rationale in N1454.) </p> <p> For example, <code>phoenix/core/actor.hpp</code> has such specializations. (Note that its current implementation is not perfect: <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/6914 Trac 1.4.3 Steven Watanabe Sat, 16 Feb 2013 20:26:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6914#comment:1 https://svn.boost.org/trac10/ticket/6914#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82935" title="Handle nullary result_of. Fixes #6914.">[82935]</a>) Handle nullary result_of. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6914" title="#6914: Feature Requests: [Lambda] Add result_of and tr1_result_of specializations for nullary ... (closed: fixed)">#6914</a>. </p> Ticket Michel Morin Sun, 17 Feb 2013 01:28:20 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/6914#comment:2 https://svn.boost.org/trac10/ticket/6914#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Thanks for the fix, Steven. </p> <p> I think we need to add the specialization for const functors, too. </p> Ticket Steven Watanabe Tue, 19 Feb 2013 19:52:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6914#comment:3 https://svn.boost.org/trac10/ticket/6914#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</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/83020" title="Handle const lambda functors for nullary result_of. Fixes #6914.">[83020]</a>) Handle const lambda functors for nullary result_of. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6914" title="#6914: Feature Requests: [Lambda] Add result_of and tr1_result_of specializations for nullary ... (closed: fixed)">#6914</a>. </p> Ticket