public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tim Song <t.canens.cpp@gmail.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: Patrick Palka <ppalka@redhat.com>,
	"libstdc++" <libstdc++@gcc.gnu.org>,
	 gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] libstdc++: Avoid hard error in ranges::unique_copy [PR100770]
Date: Wed, 26 May 2021 19:38:29 -0500	[thread overview]
Message-ID: <CAPQZVxvm_pKg7RM7homHSRtafhpkE8XBf0Dwjq2-Lc77qS_EaA@mail.gmail.com> (raw)
In-Reply-To: <CAH6eHdTzCongg__xCYu5ATGoKoPmyNSgsm=DUQC=zCrX919U+g@mail.gmail.com>

On Wed, May 26, 2021 at 2:55 PM Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> On Wed, 26 May 2021 at 20:11, Patrick Palka via Libstdc++
> <libstdc++@gcc.gnu.org> wrote:
> >
> > On Wed, 26 May 2021, Tim Song wrote:
> >
> > > I noticed that output_iterator_wrapper still has a (non-void)
> > > value_type. Perhaps we can get better coverage if it doesn't have one?
> > > The existing tests should have caught this case with that change, at least.
> >
> > Good point, and I guess it should be fine to make its pointer and
> > reference void as well.  I'm testing:
>
> Defining difference_type as void is also OK.

C++20 requires (new-style) output iterators to have a valid
difference_type too (that requirement comes from
weakly_incrementable).

  reply	other threads:[~2021-05-27  0:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26 16:45 Patrick Palka
2021-05-26 17:27 ` Tim Song
2021-05-26 18:43   ` Patrick Palka
2021-05-26 19:07     ` Tim Song
2021-05-27 13:50       ` Patrick Palka
2021-06-03 11:54         ` Jonathan Wakely
2021-05-26 19:55     ` Jonathan Wakely
2021-05-27  0:38       ` Tim Song [this message]
2021-05-26 17:28 ` Jonathan Wakely

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=CAPQZVxvm_pKg7RM7homHSRtafhpkE8XBf0Dwjq2-Lc77qS_EaA@mail.gmail.com \
    --to=t.canens.cpp@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    --cc=libstdc++@gcc.gnu.org \
    --cc=ppalka@redhat.com \
    /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).