https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67085

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Jan 19 18:26:41 2017
New Revision: 244648

URL: https://gcc.gnu.org/viewcvs?rev=244648&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_heap.h

Reply via email to