Boost C++ Libraries: Ticket #6044: Assertion failed in relaxed_heap remove() https://svn.boost.org/trac10/ticket/6044 <p> There is an assertion in boost/pending/relaxed_heap.hpp:166 when trying to remove() a zero-int from a relaxed_heap. Moreover, my investigation showed that that assert statement doesn't work in a proper way at all. As far as I understand it's purpose is to verify that the element being removed is present in heap. But attempt to remove() inexistent element doesn't cause an assertion, in the opposite, an attempt to remove() zero-int always cause an assertion. </p> <p> I propose to change this assertion to the way this check is performed in contains() method. Proposed patch is enclosed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6044 Trac 1.4.3 Ponomarev Andrew <ponomarev.a.v@…> Thu, 20 Oct 2011 20:30:46 GMT attachment set https://svn.boost.org/trac10/ticket/6044 https://svn.boost.org/trac10/ticket/6044 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">relaxed_heap_assertion_bug_data.zip</span> </li> </ul> Ticket Jeremiah Willcock Thu, 20 Oct 2011 21:27:11 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6044#comment:1 https://svn.boost.org/trac10/ticket/6044#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket Jeremiah Willcock Thu, 20 Oct 2011 21:32:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6044#comment:2 https://svn.boost.org/trac10/ticket/6044#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75074" title="Removed incorrect != 0 test on boost::optional; fixes #6044">[75074]</a>) Removed incorrect != 0 test on boost::optional; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6044" title="#6044: Bugs: Assertion failed in relaxed_heap remove() (closed: fixed)">#6044</a> </p> Ticket