PR67085 move comparison functions in heap operations
commitebc686fd30a6441cd08b11520fde1ebba22dd2a9
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jan 2017 18:26:41 +0000 (19 18:26 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jan 2017 18:26:41 +0000 (19 18:26 +0000)
tree8aab2cd8aea06cb33329d28f3824493f7d7d3c92
parente903c8af34ccaee00211ed2ac6eb213887cf7987
PR67085 move comparison functions in heap operations

PR libstdc++/67085
* include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
(pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
_GLIBCXX_MOVE when passing comparison function to other functions.
(is_heap_until, is_heap): Use std::move when passing comparison
function.
* testsuite/23_containers/priority_queue/67085.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244648 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc [new file with mode: 0644]