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)
Change History (3)
by , 7 years ago
Attachment: | pairing_heap_test.cpp added |
---|
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
fixed in develop