[gcc r10-9797] libstdc++: Implement proposed resolution for LWG 3532

Patrick Palka ppalka@gcc.gnu.org
Tue May 4 13:51:04 GMT 2021


https://gcc.gnu.org/g:4134c3e3af83f9973f20b346a197dc0085495285

commit r10-9797-g4134c3e3af83f9973f20b346a197dc0085495285
Author: Patrick Palka <ppalka@redhat.com>
Date:   Fri Apr 30 11:05:22 2021 -0400

    libstdc++: Implement proposed resolution for LWG 3532
    
    libstdc++-v3/ChangeLog:
    
            * include/std/ranges (split_view::_InnerIter::operator++):
            Depend on _Base instead of _Vp directly, as per LWG 3532.
    
    (cherry picked from commit 71834be5b68e0c9839f0647e1bbf1eec4e4bbf49)

Diff:
---
 libstdc++-v3/include/std/ranges | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index d1eb8eaefe0..822329c0800 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -3080,7 +3080,7 @@ namespace views
 	  constexpr decltype(auto)
 	  operator++(int)
 	  {
-	    if constexpr (forward_range<_Vp>)
+	    if constexpr (forward_range<_Base>)
 	      {
 		auto __tmp = *this;
 		++*this;


More information about the Libstdc++-cvs mailing list