PR libstdc++/80064 make heap algorithms work with function types
commit79cf6d74358e259c474a07288e41d016644c1982
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2017 14:32:07 +0000 (16 14:32 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2017 14:32:07 +0000 (16 14:32 +0000)
tree92da033617f64f22ad263a8ad61b0ce6a424157e
parent3541f29c07e560e46606ffd1f4ef36ba8b47f6c0
PR libstdc++/80064 make heap algorithms work with function types

PR libstdc++/80064
* include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
(pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
invalid instantiations using function types for _Compare argument.
* testsuite/25_algorithms/make_heap/80064.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246197 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/testsuite/25_algorithms/make_heap/80064.cc [new file with mode: 0644]