From 2fd1be7b1de08a4020e376a8416703715cd4f091 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 26 Jul 2019 12:03:45 -0400 Subject: [PATCH 06/33] FIXME: const-correctness for fibonacci_heap.h --- gcc/fibonacci_heap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/fibonacci_heap.h b/gcc/fibonacci_heap.h index 6e0a216..16159a3 100644 --- a/gcc/fibonacci_heap.h +++ b/gcc/fibonacci_heap.h @@ -162,19 +162,19 @@ public: fibonacci_node_t *insert (K key, V *data); /* Return true if no entry is present. */ - bool empty () + bool empty () const { return m_nodes == 0; } /* Return the number of nodes. */ - size_t nodes () + size_t nodes () const { return m_nodes; } /* Return minimal key presented in the heap. */ - K min_key () + K min_key () const { if (m_min == NULL) gcc_unreachable (); -- 1.8.5.3