PR libstdc++/80064 make heap algorithms work with function types
authorJonathan Wakely <jwakely@redhat.com>
Thu, 16 Mar 2017 14:32:07 +0000 (14:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 16 Mar 2017 14:32:07 +0000 (14:32 +0000)
commit8d85abab445d4f458826f4ef3acbc83091257c8b
tree92da033617f64f22ad263a8ad61b0ce6a424157e
parent7acc5349773cfe101d6ed116be30e15eb71b0d0f
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.

From-SVN: r246197
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_heap.h
libstdc++-v3/testsuite/25_algorithms/make_heap/80064.cc [new file with mode: 0644]