[all-commits] [llvm/llvm-project] 076184: [libcxx] Add a missing include for __enable_if_t (...

Takuto Ikuta via All-commits all-commits at lists.llvm.org
Wed Feb 12 23:55:18 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0761841bc000ce3206e043d25eb45e87d6dab0d4
      https://github.com/llvm/llvm-project/commit/0761841bc000ce3206e043d25eb45e87d6dab0d4
  Author: Takuto Ikuta <tikuta at google.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M libcxx/include/__filesystem/path.h

  Log Message:
  -----------
  [libcxx] Add a missing include for __enable_if_t (#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;
      | ^
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list