Skip to content

Commit 0761841

Browse files
authored
[libcxx] Add a missing include for __enable_if_t (llvm#127016)
This is to fix compile error with explicit Clang modules like ``` ../../third_party/libc++/src/include/__filesystem/path.h:80:26: error: declaration of '__enable_if_t' must be imported from module 'std_core.type_traits.enable_if' before it is required 80 | template <class _ECharT, __enable_if_t<__can_convert_char<_ECharT>::value, int> = 0> | ^ ../../third_party/libc++/src/include/__type_traits/enable_if.h:34:1: note: declaration here is not visible 34 | using __enable_if_t _LIBCPP_NODEBUG = typename enable_if<_Bp, _Tp>::type; | ^ ```
1 parent 672e385 commit 0761841

File tree

1 file changed

+1
-0
lines changed
  • libcxx/include/__filesystem

1 file changed

+1
-0
lines changed

libcxx/include/__filesystem/path.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <__iterator/back_insert_iterator.h>
1919
#include <__iterator/iterator_traits.h>
2020
#include <__type_traits/decay.h>
21+
#include <__type_traits/enable_if.h>
2122
#include <__type_traits/is_pointer.h>
2223
#include <__type_traits/remove_const.h>
2324
#include <__type_traits/remove_pointer.h>

0 commit comments

Comments
 (0)