From 38660e87f01dbe15082e83cc4842d66f8d292ba0 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sun, 9 Feb 2020 13:58:16 +0000 Subject: [PATCH] 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. --- libstdc++-v3/ChangeLog | 4 ++++ .../testsuite/20_util/function_objects/range.cmp/equal_to.cc | 2 +- .../testsuite/20_util/function_objects/range.cmp/less.cc | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cc23523f57a..d3c704ad0e8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2020-02-09 Jonathan Wakely + * 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 diff --git a/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/equal_to.cc b/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/equal_to.cc index 34f8ee5aca4..2d87b60a8ea 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/equal_to.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/equal_to.cc @@ -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 ); int diff --git a/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/less.cc b/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/less.cc index bf7d600e7fe..8c04ad4ea6b 100644 --- a/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/less.cc +++ b/libstdc++-v3/testsuite/20_util/function_objects/range.cmp/less.cc @@ -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 ); int -- 2.30.2