aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-02-06 12:16:05 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-02-06 14:23:47 +0000
commit0afcb713217628de46a6e912eea286ed612ebcbc (patch)
tree4bbac6dba5cd3ab4f9d653c053bb76f4977e4d30
parentc76f55bf330e7cb823cb850aa2694b355038625f (diff)
downloadgcc-0afcb713217628de46a6e912eea286ed612ebcbc.zip
gcc-0afcb713217628de46a6e912eea286ed612ebcbc.tar.gz
gcc-0afcb713217628de46a6e912eea286ed612ebcbc.tar.bz2
libstdc++: Fix non-reserved name for template parameter
libstdc++-v3/ChangeLog: * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp. (__find_last_if_fn): Likewise.
-rw-r--r--libstdc++-v3/include/bits/ranges_algo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index 5577d86..1685e1d 100644
--- a/libstdc++-v3/include/bits/ranges_algo.h
+++ b/libstdc++-v3/include/bits/ranges_algo.h
@@ -3568,10 +3568,10 @@ namespace ranges
struct __find_last_fn
{
- template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename T, typename _Proj = identity>
- requires indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const T*>
+ template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity>
+ requires indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp*>
constexpr subrange<_Iter>
- operator()(_Iter __first, _Sent __last, const T& __value, _Proj __proj = {}) const
+ operator()(_Iter __first, _Sent __last, const _Tp& __value, _Proj __proj = {}) const
{
if constexpr (same_as<_Iter, _Sent> && bidirectional_iterator<_Iter>)
{
@@ -3599,10 +3599,10 @@ namespace ranges
}
}
- template<forward_range _Range, typename T, typename _Proj = identity>
- requires indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const T*>
+ template<forward_range _Range, typename _Tp, typename _Proj = identity>
+ requires indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp*>
constexpr borrowed_subrange_t<_Range>
- operator()(_Range&& __r, const T& __value, _Proj __proj = {}) const
+ operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const
{ return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__proj)); }
};