]> gcc.gnu.org Git - gcc.git/commit
PR67085 move comparison functions in heap operations
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 Jan 2017 18:26:41 +0000 (18:26 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 19 Jan 2017 18:26:41 +0000 (18:26 +0000)
commit45b48129d5e03ba60d434986f480a46ab119ddb7
tree8aab2cd8aea06cb33329d28f3824493f7d7d3c92
parentc048038f8d50d5f3c657451b216f6ef751887bd8
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.

From-SVN: r244648
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc [new file with mode: 0644]
This page took 0.05582 seconds and 5 git commands to generate.