|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80039 - trunk/boost/heap
From: tim_at_[hidden]
Date: 2012-08-15 04:50:26
Author: timblechmann
Date: 2012-08-15 04:50:24 EDT (Wed, 15 Aug 2012)
New Revision: 80039
URL: http://svn.boost.org/trac/boost/changeset/80039
Log:
heap: fix ticket #7233
Signed-off-by: Tim Blechmann <tim_at_[hidden]>
Text files modified:
trunk/boost/heap/fibonacci_heap.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/heap/fibonacci_heap.hpp
==============================================================================
--- trunk/boost/heap/fibonacci_heap.hpp (original)
+++ trunk/boost/heap/fibonacci_heap.hpp 2012-08-15 04:50:24 EDT (Wed, 15 Aug 2012)
@@ -715,6 +715,9 @@
void consolidate(void)
{
+ if (roots.empty())
+ return;
+
static const size_type max_log2 = sizeof(size_type) * 8;
boost::array<node_pointer, max_log2> aux;
aux.assign(NULL);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk