Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2008-03-27 13:57:25


On Mar 4, 2008, at 11:19 AM, Dawson, Paul (UK Filton) wrote:
> Using relaxed_heap I'm getting a problem with the asserts in the top()
> and pop() functions:
>
> assert(smallest_value->value != 0);
>
> Where value is a ::boost::optional<T>, and T is the indexed type of
> the
> heap.

That "0" should be "none" (from boost/none.hpp); this bug is fixed in
Boost 1.35.0 and on the Boost development trunk.

        - Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk