summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuto Ikuta <tikuta@google.com>2025-02-13 16:54:43 +0900
committerTom Stellard <tstellar@redhat.com>2025-03-18 16:15:15 -0700
commit424c2d9b7e4de40d0804dd374721e6411c27d1d1 (patch)
tree55610521deadd52de600996411bbbbe03c6bac42
parent2cc53628fbe88d00c8f54bfd54530330f191ebfc (diff)
[libcxx] Add a missing include for __bit_iterator (#127015)llvmorg-20.1.1
This is to fix compile error with explicit Clang modules like ``` ../../third_party/libc++/src/include/__vector/vector_bool.h:85:11: error: default argument of '__bit_iterator' must be imported from module 'std.bit_reference_fwd' before it is required 85 | typedef __bit_iterator<vector, false> pointer; | ^ ../../third_party/libc++/src/include/__fwd/bit_reference.h:23:68: note: default argument declared here is not reachable 23 | template <class _Cp, bool _IsConst, typename _Cp::__storage_type = 0> | ^ ``` (cherry picked from commit 672e3858a4e4b9e155adb72426074ea2af0dd922)
-rw-r--r--libcxx/include/__vector/vector_bool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/__vector/vector_bool.h b/libcxx/include/__vector/vector_bool.h
index 4f1c442ce0be..feff646a35dc 100644
--- a/libcxx/include/__vector/vector_bool.h
+++ b/libcxx/include/__vector/vector_bool.h
@@ -17,6 +17,7 @@
#include <__bit_reference>
#include <__config>
#include <__functional/unary_function.h>
+#include <__fwd/bit_reference.h>
#include <__fwd/functional.h>
#include <__fwd/vector.h>
#include <__iterator/distance.h>