From: Jonathan Wakely Date: Mon, 6 Feb 2023 12:16:05 +0000 (+0000) Subject: libstdc++: Fix non-reserved name for template parameter X-Git-Tag: basepoints/gcc-14~1490 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0afcb713217628de46a6e912eea286ed612ebcbc;p=thirdparty%2Fgcc.git 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. --- diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h index 5577d862cb51..1685e1d85bb7 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 _Sent, typename T, typename _Proj = identity> - requires indirect_binary_predicate, const T*> + template _Sent, typename _Tp, typename _Proj = identity> + requires indirect_binary_predicate, 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 - requires indirect_binary_predicate, _Proj>, const T*> + template + requires indirect_binary_predicate, _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)); } };