public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Patrick Palka <ppalka@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile
Date: Fri, 17 Jan 2020 03:59:00 -0000	[thread overview]
Message-ID: <20200117035914.126770.qmail@sourceware.org> (raw)

https://gcc.gnu.org/g:32343303a86027835ee90c2fe7ec6c9a5b139c16

commit 32343303a86027835ee90c2fe7ec6c9a5b139c16
Author: Patrick Palka <ppalka@gcc.gnu.org>
Date:   Thu Jan 16 14:34:40 2020 -0500

    Tweak the __advanceable concept to make difference_type.cc compile

Diff:
---
 libstdc++-v3/include/std/ranges | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index ea558c7..a471d20 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -628,8 +628,8 @@ namespace ranges
       concept __advanceable = __decrementable<_It> && totally_ordered<_It>
 	&& requires( _It __i, const _It __j, const __iota_diff_t<_It> __n)
 	{
-	  { __i += __n } -> same_as<_It&>;
-	  { __i -= __n } -> same_as<_It&>;
+	  { __i += (_It)__n } -> same_as<_It&>;
+	  { __i -= (_It)__n } -> same_as<_It&>;
 	  _It(__j + __n);
 	  _It(__n + __j);
 	  _It(__j - __n);


             reply	other threads:[~2020-01-17  3:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17  3:59 Patrick Palka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-17  5:24 Patrick Palka
2020-01-17  4:05 Patrick Palka
2020-01-16 20:26 Patrick Palka

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=20200117035914.126770.qmail@sourceware.org \
    --to=ppalka@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).