[libcxx-commits] [libcxx] [libc++] Add missing include to thread.h (PR #208740)

Liza Burakova via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 10 07:59:46 PDT 2026


liza371 wrote:

I believe it is used, there's a static assert in line 151 https://github.com/llvm/llvm-project/blob/main/libcxx/include/__thread/thread.h#L151, and the exact error I saw on chromium rolls was

../../third_party/libc++/src/include/__thread/thread.h:151:58: error: declaration of 'is_integral' must be imported from module '//build/modules:system.std_core.type_traits.is_integral' before it is required
  151 |   static_assert(is_pointer<__libcpp_thread_id>::value || is_integral<__libcpp_thread_id>::value);
      |                                                          ^
../../third_party/libc++/src/include/__type_traits/is_integral.h:25:35: note: declaration here is not visible
   25 | struct _LIBCPP_NO_SPECIALIZATIONS is_integral : _BoolConstant<__is_integral(_Tp)> {};
      |   

https://github.com/llvm/llvm-project/pull/208740


More information about the libcxx-commits mailing list