Boost C++ Libraries: Ticket #10672: std::iterator_traits<boost::unordered_map<K,M>::iterator>::pointer should be value_type*, not detail::ptr_node<...> https://svn.boost.org/trac10/ticket/10672 <p> The iterator type looks like: </p> <pre class="wiki">template &lt;typename NodePointer, typename Value&gt; struct iterator : public boost::iterator&lt; std::forward_iterator_tag, Value, std::ptrdiff_t, NodePointer, Value&amp;&gt; </pre><p> The <code>NodePointer</code> argument here (which is <code>boost::unordered::detail::ptr_node&lt;...&gt;</code>) becomes the <code>iterator_traits&lt;&gt;::pointer</code> type. </p> <p> But <code>iterator's operator-&gt;()</code> returns <code>Value *</code>: </p> <pre class="wiki">Value* operator-&gt;() const { return &amp;node_-&gt;value(); } </pre><p> Seems like this should be changed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10672 Trac 1.4.3 Daniel James Wed, 22 Oct 2014 20:21:40 GMT status, description changed https://svn.boost.org/trac10/ticket/10672#comment:1 https://svn.boost.org/trac10/ticket/10672#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/10672?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Daniel James Wed, 22 Oct 2014 21:06:54 GMT <link>https://svn.boost.org/trac10/ticket/10672#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10672#comment:2</guid> <description> <p> Fix in develop: <a class="ext-link" href="https://github.com/boostorg/unordered/commit/99985bb1b26ea13e9a85f723cfa9369a4c9ee257"><span class="icon">​</span>https://github.com/boostorg/unordered/commit/99985bb1b26ea13e9a85f723cfa9369a4c9ee257</a> </p> <p> Will hopefully be included in the next release. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 25 Oct 2014 18:09:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10672#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10672#comment:3</guid> <description> <p> Awesome! Thank you! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Tue, 12 May 2015 17:56:23 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10672#comment:4 https://svn.boost.org/trac10/ticket/10672#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket