]> 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>
Fri, 30 Apr 2021 15:05:22 +0000 (11:05 -0400)
libstdc++-v3/ChangeLog:

* include/std/ranges (split_view::_InnerIter::operator++):
Depend on _Base instead of _Vp directly, as per LWG 3532.

libstdc++-v3/include/std/ranges

index 73d3e008a462798ab09cb7154d4a94e3b2ff9b46..4975d5c630b8c1b1ccc18b3c5fdc7fdd7a364a72 100644 (file)
@@ -2898,7 +2898,7 @@ namespace views::__adaptor
          constexpr decltype(auto)
          operator++(int)
          {
-           if constexpr (forward_range<_Vp>)
+           if constexpr (forward_range<_Base>)
              {
                auto __tmp = *this;
                ++*this;