Skip to content

Commit 424c2d9

Browse files
atetuboutstellar
authored andcommitted
[libcxx] Add a missing include for __bit_iterator (#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> | ^ ``` (cherry picked from commit 672e385)
1 parent 2cc5362 commit 424c2d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcxx/include/__vector/vector_bool.h

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

0 commit comments

Comments
 (0)