libstdc++: Fix constraints on std::compare_three_way
My "simplification" of std::compare_three_way's constraints in commit f214ffb3 was incorrect, because std::three_way_comparable_with imposes additional restrictions beyond the <=> expression being valid. * libsupc++/compare (compare_three_way): Fix constraint so that BUILTIN-PTR-THREE-WAY does not require three_way_comparable_with. * testsuite/18_support/comparisons/object/builtin-ptr-three-way.cc: New test.
Showing
Please
register
or
sign in
to comment