[libcxx-commits] [libcxx] [libc++] P2770R0: "Stashing stashing iterators for proper flattening" (PR #66033)

Jakub Mazurkiewicz via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 27 08:16:04 PST 2023


================
@@ -154,11 +163,10 @@ namespace ranges {
     requires view<_View> && input_range<range_reference_t<_View>>
   template<bool _Const>
   struct join_view<_View>::__sentinel {
-  template<bool>
-    friend struct __sentinel;
-
   private:
-    using _Parent = __maybe_const<_Const, join_view<_View>>;
+    friend join_view;
----------------
JMazurkiewicz wrote:

This is just a shorter way of saying:

```c++
template<bool>
  friend struct __sentinel;
```

I'm going to restore the old `__sentinel` friendship though.

https://github.com/llvm/llvm-project/pull/66033


More information about the libcxx-commits mailing list