public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-521] libstdc++: Implement LWG 3517/3520 for join_view/transform_view
@ 2021-05-05 16:08 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-05-05 16:08 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:2663727d853438ee4d67b200a08f94a318745486

commit r12-521-g2663727d853438ee4d67b200a08f94a318745486
Author: Patrick Palka <ppalka@redhat.com>
Date:   Wed May 5 12:07:32 2021 -0400

    libstdc++: Implement LWG 3517/3520 for join_view/transform_view
    
    libstdc++-v3/ChangeLog:
    
            * include/std/ranges (transform_view::_Iterator::iter_swap):
            Remove as per LWG 3520.
            (join_view::_Iterator::iter_swap): Add indirectly_swappable
            constraint as per LWG 3517.

Diff:
---
 libstdc++-v3/include/std/ranges | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index 4a7ca49b45d..f21e08a36e3 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -1581,12 +1581,6 @@ namespace views::__adaptor
 	      return *__i;
 	  }
 
-	  friend constexpr void
-	  iter_swap(const _Iterator& __x, const _Iterator& __y)
-	    noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current)))
-	    requires indirectly_swappable<_Base_iter>
-	  { return ranges::iter_swap(__x._M_current, __y._M_current); }
-
 	  friend _Iterator<!_Const>;
 	  template<bool> friend struct _Sentinel;
 	};
@@ -2520,6 +2514,7 @@ namespace views::__adaptor
 	  friend constexpr void
 	  iter_swap(const _Iterator& __x, const _Iterator& __y)
 	    noexcept(noexcept(ranges::iter_swap(__x._M_inner, __y._M_inner)))
+	    requires indirectly_swappable<_Inner_iter>
 	  { return ranges::iter_swap(__x._M_inner, __y._M_inner); }
 
 	  friend _Iterator<!_Const>;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-05 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 16:08 [gcc r12-521] libstdc++: Implement LWG 3517/3520 for join_view/transform_view 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).