]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Implement proposed resolution for LWG 3532
authorPatrick Palka <ppalka@redhat.com>
Fri, 30 Apr 2021 15:05:22 +0000 (11:05 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 4 May 2021 13:42:33 +0000 (09:42 -0400)
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)

libstdc++-v3/include/std/ranges

index 09115e9b45f9918dbc8905bece44bb1baeab58b1..606ce81f824a48eb7da0c34accf6a249a41e35f2 100644 (file)
@@ -2895,7 +2895,7 @@ namespace views::__adaptor
          constexpr decltype(auto)
          operator++(int)
          {
-           if constexpr (forward_range<_Vp>)
+           if constexpr (forward_range<_Base>)
              {
                auto __tmp = *this;
                ++*this;