Boost C++ Libraries: Ticket #11996: Deduce key type from return type of key extractor https://svn.boost.org/trac10/ticket/11996 <p> The "key extractor" passed to <code>key_of_value</code> must specify the key type as a nested <code>type</code> definition and the <code>operator()</code> that extracts the key of a <code>value_type</code>. </p> <p> I think the nested <code>type</code> definition is redundant and could be determined from the returned type of the key extraction <code>operator()</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11996 Trac 1.4.3 Ion Gaztañaga Fri, 26 Feb 2016 18:51:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11996#comment:1 https://svn.boost.org/trac10/ticket/11996#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">wontfix</span> </li> </ul> <p> The library needs to support C++03, and relaying on a result_of emulation would be overkill. </p> Ticket