Skip to content

Commit 672e385

Browse files
authored
[libcxx] Add a missing include for __bit_iterator (llvm#127015)
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> | ^ ```
1 parent 75c356c commit 672e385

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libcxx/include/__vector/vector_bool.h

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <__bit_reference>
1919
#include <__config>
2020
#include <__functional/unary_function.h>
21+
#include <__fwd/bit_reference.h>
2122
#include <__fwd/functional.h>
2223
#include <__fwd/vector.h>
2324
#include <__iterator/distance.h>

0 commit comments

Comments
 (0)