[libcxx-commits] [libcxx] [libc++] Fix module builds for `<__algorithm/unwrap_range.h>` (PR #179887)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 5 00:54:39 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: A. Jiang (frederick-vs-ja)

<details>
<summary>Changes</summary>

3a653afd45709432181952c0ffdb53eceb0939ae removed the inclusion of `<__utility/declval.h>` from `<__algorithm/unwrap_range.h>`. However, `unwrap_range.h` still needs to use `std::declval`. So we should restore the inclusion.

The building failure with Clang modules was already caught by CI.

---
Full diff: https://github.com/llvm/llvm-project/pull/179887.diff


1 Files Affected:

- (modified) libcxx/include/__algorithm/unwrap_range.h (+1) 


``````````diff
diff --git a/libcxx/include/__algorithm/unwrap_range.h b/libcxx/include/__algorithm/unwrap_range.h
index 14603a4026381..c46094f1e6861 100644
--- a/libcxx/include/__algorithm/unwrap_range.h
+++ b/libcxx/include/__algorithm/unwrap_range.h
@@ -13,6 +13,7 @@
 #include <__config>
 #include <__iterator/concepts.h>
 #include <__type_traits/is_same.h>
+#include <__utility/declval.h>
 #include <__utility/move.h>
 #include <__utility/pair.h>
 

``````````

</details>


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


More information about the libcxx-commits mailing list