Commit 38660e87 by Jonathan Wakely

libstdc++: Fix names of types in comment

	* testsuite/20_util/function_objects/range.cmp/equal_to.cc: Fix
	comment.
	* testsuite/20_util/function_objects/range.cmp/less.ccL Likewise.
parent 97a7c229
2020-02-09 Jonathan Wakely <jwakely@redhat.com>
* testsuite/20_util/function_objects/range.cmp/equal_to.cc: Fix
comment.
* testsuite/20_util/function_objects/range.cmp/less.ccL Likewise.
* include/std/ranges: Fix non-ASCII characters in comment.
* include/bits/range_cmp.h (__detail::__eq_builtin_ptr_cmp): Require
......
......@@ -75,7 +75,7 @@ struct Y
operator int() const;
};
// X{} == X{} is ambiguous so ranges::equal_to{}(X{}, X{}) should be invalid
// Y{} == Y{} is ambiguous so ranges::equal_to{}(Y{}, Y{}) should be invalid
static_assert( !std::is_invocable_v<F&, Y, Y> );
int
......
......@@ -80,7 +80,7 @@ struct Y
operator int() const;
};
// X{} == X{} is ambiguous so ranges::less{}(X{}, X{}) should be invalid
// Y{} == Y{} is ambiguous so ranges::less{}(Y{}, Y{}) should be invalid
static_assert( !std::is_invocable_v<F&, Y, Y> );
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment