[Bug libstdc++/67085] New: priority queue should not copy comparators when calling push_heap and pop_heap

2015-07-31 Thread konig121 at gmail dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: konig121 at gmail dot com Target Milestone: --- Created attachment 36103 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36103&action=edit

[Bug libstdc++/67085] priority queue should not copy comparators when calling push_heap and pop_heap

2015-07-31 Thread konig121 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67085 Andrew Calcutt changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Andrew

[Bug libstdc++/67085] priority queue should not copy comparators when calling push_heap and pop_heap

2015-08-03 Thread konig121 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67085 --- Comment #3 from Andrew Calcutt --- Hi Jonathan, I can understand your reservation, but it seems to me like there is a case for making this change if the comparator provided to the priority_queue was explicitly a reference type. For example: