Subject: [Boost-bugs] [Boost C++ Libraries] #11379: pairing_heap::end requires compare functor to be default constructible
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-07 09:47:56
#11379: pairing_heap::end requires compare functor to be default constructible
------------------------------+--------------------------
Reporter: anonymous | Owner: timblechmann
Type: Bugs | Status: new
Milestone: To Be Determined | Component: heap
Version: Boost 1.58.0 | Severity: Problem
Keywords: |
------------------------------+--------------------------
'boost::heap::pairing_heap<int, boost::heap::compare<Compare> >::end'
tries to default-construct a 'Compare' object, and fails to compile if
'Compare' is not default constructible. This is an error. If the
iterator requires a 'Compare' object, it should copy-construct this from
the object stored in the heap data structure. See attached file for a
minimal example
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11379> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC