PR libstdc++/85040 fix std::less<void> etc. ambiguities
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 Mar 2018 14:23:27 +0000 (14:23 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 22 Mar 2018 14:23:27 +0000 (14:23 +0000)
commit7c69a7d9bdabb4d0200718edfff54a139e488b7f
tree7afede0eb45c1aeb24a6377f8775913809408748
parentece7d31f429306945b5fb8b31496d2725bd74a13
PR libstdc++/85040 fix std::less<void> etc. ambiguities

PR libstdc++/85040
* include/bits/stl_function.h (greater::__not_overloaded)
(less::__not_overloaded, greater_equal::__not_overloaded)
(less_equal::__not_overloaded): Fix ambiguous specializations.
* testsuite/20_util/function_objects/comparisons_pointer.cc: Add
tests for type with overlaoded operators.

From-SVN: r258773
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_function.h
libstdc++-v3/testsuite/20_util/function_objects/comparisons_pointer.cc