Decrease operation in fibonacci heap, boost
问题 I'm trying to use in my implementation the fibonacci heap from boost but my program crashes, when I calling decrease function, this the example (W is a simple class): struct heap_data { boost::heap::fibonacci_heap<heap_data>::handle_type handle; W* payload; heap_data(W* w) { payload = w; } bool operator<(heap_data const & rhs) const { return payload->get_key() < rhs.payload->get_key(); } }; int main() { boost::heap::fibonacci_heap<heap_data> heap; vector<heap_data> A; for (int i = 0; i < 10;