Boost C++ Libraries: Ticket #1043: last_value<void>::result_type set to last_value<void>::unusable when it could be set to void https://svn.boost.org/trac10/ticket/1043 <p> Currently, last_value&lt;void&gt;::result_type is set to last_value&lt;void&gt;::unusable. On compilers which support void returns, it seems like it would be more beneficial to set it to void instead. I.e., </p> <blockquote> <p> template&lt;&gt; struct last_value&lt;void&gt; { </p> </blockquote> <p> #ifdef BOOST_NO_VOID_RETURNS </p> <blockquote> <p> struct unusable {}; </p> </blockquote> <blockquote> <p> public: </p> <blockquote> <p> typedef unusable result_type; </p> </blockquote> </blockquote> <p> #else </p> <blockquote> <p> public: </p> <blockquote> <p> typedef void result_type; </p> </blockquote> </blockquote> <p> #endif <em> BOOST_NO_VOID_RETURNS </em></p> <p> ... </p> <p> Patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1043 Trac 1.4.3 Stjepan Rajko Fri, 08 Jun 2007 03:28:35 GMT type changed https://svn.boost.org/trac10/ticket/1043#comment:1 https://svn.boost.org/trac10/ticket/1043#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Stjepan Rajko Fri, 08 Jun 2007 15:43:44 GMT attachment set https://svn.boost.org/trac10/ticket/1043 https://svn.boost.org/trac10/ticket/1043 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">last_value.hpp.patch</span> </li> </ul> Ticket Stjepan Rajko Thu, 14 Jun 2007 06:15:10 GMT owner set https://svn.boost.org/trac10/ticket/1043#comment:2 https://svn.boost.org/trac10/ticket/1043#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Stjepan Rajko</span> </li> </ul> Ticket Stjepan Rajko Thu, 14 Jun 2007 06:15:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1043#comment:3 https://svn.boost.org/trac10/ticket/1043#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