Boost logo

Boost Users :

Subject: Re: [Boost-users] [heap] Boost heap and default constructors for comparators
From: Tim Blechmann (tim_at_[hidden])
Date: 2012-02-17 05:35:50

> The Boost heap library (at least binomial and fibonacci heaps) requires
> a default constructor of its comparator in order to call 'pop()' on a heap.
> I ran into this because I was trying to use a std::binary_negate<>
> wrapper around another comparator: this has no default constructor. So
> it's pretty easy to work around; I just have to provide a custom version
> of binary_negate.
> However, is this intentional? Should it be fixed?

this should be fixed (not sure if it will make it into 1.49, as it is supposed
to be released in a few days ...

cheers, tim

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at