Opened 5 years ago

Last modified 5 years ago

#13089 new Bugs

Boost::binomial_heap Sanity check error

Reported by: jun.kudo@… Owned by: timblechmann
Milestone: To Be Determined Component: heap
Version: Boost 1.64.0 Severity: Problem
Keywords: Cc:

Description

Configured with BOOST_HEAP_SANITYCHECKS turned on.

Binomial heap hits an assertion failure (BOOST_HEAP_ASSERT(top_element == found_top)) when pushing nodes with the same priority.

#include "boost/heap/binomial_heap.hpp"
typedef boost::heap::binomial_heap<int> Heap;

int main(int argc, char* argv[]) {
  Heap heap0;
  heap0.push(1);
  heap0.push(1);
}

Attachments (1)

main2.cpp (172 bytes ) - added by jun.kudo@… 5 years ago.

Download all attachments as: .zip

Change History (2)

by jun.kudo@…, 5 years ago

Attachment: main2.cpp added

comment:1 by jun.kudo@…, 5 years ago

Version: Boost 1.63.0Boost 1.64.0
Note: See TracTickets for help on using tickets.