Opened 7 years ago

Closed 7 years ago

#11379 closed Bugs (fixed)

pairing_heap::end requires compare functor to be default constructible

Reported by: anonymous Owned by: timblechmann
Milestone: To Be Determined Component: heap
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

'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

Attachments (1)

pairing_heap_test.cpp (256 bytes ) - added by Rainer Deyke <rainerd@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

by Rainer Deyke <rainerd@…>, 7 years ago

Attachment: pairing_heap_test.cpp added

comment:1 by timblechmann, 7 years ago

fixed in develop

comment:2 by timblechmann, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.