[libcxx-commits] [libcxx] [libc++][ranges] `elements_view` (re-)add `get()` forward declarations (PR #82236)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 19 03:26:04 PST 2024
https://github.com/H-G-Hristov created https://github.com/llvm/llvm-project/pull/82236
This adds the forward declarations of `get` of `tuple-like` types to `elements_view`.
Removing `__fwd/get.h`
https://github.com/llvm/llvm-project/pull/81368/files#diff-7567a1ecc8c324da54370521a89d7a52f5a99b8fd4da3eee23b77c23b5da098e
from `elements_view` appears to have impacted it:
https://github.com/llvm/llvm-project/actions/runs/7885489699/job/21516737589#step:3:1685
and the module build stage1 (generic-modules, clang-18, clang++-18, ON).
>From ff562353dd3fed591bd4859ffd3353f0ce1c9f08 Mon Sep 17 00:00:00 2001
From: Hristo Hristov <hghristov.rmm at gmail.com>
Date: Mon, 19 Feb 2024 13:25:27 +0200
Subject: [PATCH] [libc++][ranges] `elements_view` (re-)add `get()` forward
declarations
This adds the forward declarations of `get` of `tuple-like` types to `elements_view`.
Removing `__fwd/get.h`
https://github.com/llvm/llvm-project/pull/81368/files#diff-7567a1ecc8c324da54370521a89d7a52f5a99b8fd4da3eee23b77c23b5da098e
from `elements_view` appears to have impacted it:
https://github.com/llvm/llvm-project/actions/runs/7885489699/job/21516737589#step:3:1685
and the module build stage1 (generic-modules, clang-18, clang++-18, ON).
---
libcxx/include/__ranges/elements_view.h | 4 ++++
1 file changed, 4 insertions(+)
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>
More information about the libcxx-commits
mailing list