Boost C++ Libraries: Ticket #7233: erase does not work on fibonacci_heap https://svn.boost.org/trac10/ticket/7233 <p> erase(handle_type) doesn't work when heap::fibonacci_heap has only one element. I guess this could be fixed by checking empty() before calling consolidate(), like pop() does. </p> <p> The bug can be reproduced by: </p> <blockquote> <p> boost::heap::fibonacci_heap&lt;int&gt; fh; </p> </blockquote> <blockquote> <p> boost::heap::fibonacci_heap&lt;int&gt;::handle_type h1 = fh.push(3); fh.erase(h1); </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7233 Trac 1.4.3 timblechmann Wed, 15 Aug 2012 08:50:33 GMT <link>https://svn.boost.org/trac10/ticket/7233#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7233#comment:1</guid> <description> <p> fixed in trunk! thanks for reporting </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Thu, 22 Nov 2012 11:51:49 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7233#comment:2 https://svn.boost.org/trac10/ticket/7233#comment:2 <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