[libcxx-commits] [libcxx] [libc++][ranges] `elements_view` (re-)add `get()` forward declarations (PR #82236)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 19 03:28:12 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Hristo Hristov (H-G-Hristov)

<details>
<summary>Changes</summary>

This adds the forward declarations of `get` of `tuple-like` types to `elements_view`.

Removing `__fwd/get.h` in
https://github.com/llvm/llvm-project/pull/81368/files#diff-7567a1ecc8c324da54370521a89d7a52f5a99b8fd4da3eee23b77c23b5da098e
from `elements_view` appears to have impacted the modules build stage1 (generic-modules, clang-18, clang++-18, ON):
https://github.com/llvm/llvm-project/actions/runs/7885489699/job/21516737589#step:3:1685
NB: No other CI tests fail.

---
Full diff: https://github.com/llvm/llvm-project/pull/82236.diff


1 Files Affected:

- (modified) libcxx/include/__ranges/elements_view.h (+4) 


``````````diff
diff --git a/libcxx/include/__ranges/elements_view.h b/libcxx/include/__ranges/elements_view.h
index f159f53dc0a832..91acf15dad78ba 100644
--- a/libcxx/include/__ranges/elements_view.h
+++ b/libcxx/include/__ranges/elements_view.h
@@ -16,7 +16,11 @@
 #include <__concepts/derived_from.h>
 #include <__concepts/equality_comparable.h>
 #include <__config>
+#include <__fwd/array.h>
 #include <__fwd/complex.h>
+#include <__fwd/pair.h>
+#include <__fwd/subrange.h>
+#include <__fwd/tuple.h>
 #include <__iterator/concepts.h>
 #include <__iterator/iterator_traits.h>
 #include <__ranges/access.h>

``````````

</details>


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


More information about the libcxx-commits mailing list