public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile
@ 2020-01-17  4:05 Patrick Palka
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Palka @ 2020-01-17  4:05 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:1f2b63269246ecb08aee65b957ec828f81266573

commit 1f2b63269246ecb08aee65b957ec828f81266573
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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile
@ 2020-01-17  5:24 Patrick Palka
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Palka @ 2020-01-17  5:24 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:faccda9b27b7c31a61c4058ca30e5ab4429f6e6e

commit faccda9b27b7c31a61c4058ca30e5ab4429f6e6e
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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile
@ 2020-01-17  3:59 Patrick Palka
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Palka @ 2020-01-17  3:59 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile
@ 2020-01-16 20:26 Patrick Palka
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Palka @ 2020-01-16 20:26 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:1ca40d4d91eee63d83413cdc296a674506eeb9a6

commit 1ca40d4d91eee63d83413cdc296a674506eeb9a6
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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-17  5:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17  4:05 [gcc(refs/users/ppalka/heads/integer_class_type)] Tweak the __advanceable concept to make difference_type.cc compile Patrick Palka
  -- strict thread matches above, loose matches on Subject: below --
2020-01-17  5:24 Patrick Palka
2020-01-17  3:59 Patrick Palka
2020-01-16 20:26 Patrick Palka

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).