public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r13-5717] libstdc++: Fix non-reserved name for template parameter
Date: Mon,  6 Feb 2023 14:25:43 +0000 (GMT)	[thread overview]
Message-ID: <20230206142543.02D8238432D6@sourceware.org> (raw)

https://gcc.gnu.org/g:0afcb713217628de46a6e912eea286ed612ebcbc

commit r13-5717-g0afcb713217628de46a6e912eea286ed612ebcbc
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Feb 6 12:16:05 2023 +0000

    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:
---
 libstdc++-v3/include/bits/ranges_algo.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index 5577d862cb5..1685e1d85bb 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)); }
   };

                 reply	other threads:[~2023-02-06 14:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230206142543.02D8238432D6@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).