|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77055 - trunk/boost/heap
From: tim_at_[hidden]
Date: 2012-02-17 06:10:08
Author: timblechmann
Date: 2012-02-17 06:10:07 EST (Fri, 17 Feb 2012)
New Revision: 77055
URL: http://svn.boost.org/trac/boost/changeset/77055
Log:
heap: binomial heap - fix private constructor
the private constructor should copy the value_compare object
Text files modified:
trunk/boost/heap/binomial_heap.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/heap/binomial_heap.hpp
==============================================================================
--- trunk/boost/heap/binomial_heap.hpp (original)
+++ trunk/boost/heap/binomial_heap.hpp 2012-02-17 06:10:07 EST (Fri, 17 Feb 2012)
@@ -389,7 +389,7 @@
if (element->child_count()) {
size_type sz = (1 << element->child_count()) - 1;
- binomial_heap children(element->children, sz);
+ binomial_heap children(value_comp(), element->children, sz);
if (trees.empty())
swap(children);
else
@@ -827,8 +827,8 @@
}
// private constructor, just used in pop()
- explicit binomial_heap(node_list_type & child_list, size_type size):
- super_t(value_compare())
+ explicit binomial_heap(value_compare const & cmp, node_list_type & child_list, size_type size):
+ super_t(cmp)
{
size_holder::set_size(size);
if (size)
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