[libcxx-commits] [libcxx] [libc++][modules] Include __type_traits/invoke.h from __type_traits/result_of.h (PR #106796)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 30 13:59:32 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
The result_of trait requires the __invoke_of implementation detail, but that is defined under __type_traits, not under __functional. Include the right header directly to remove a dependency from __type_traits to __functional.
---
Full diff: https://github.com/llvm/llvm-project/pull/106796.diff
1 Files Affected:
- (modified) libcxx/include/__type_traits/result_of.h (+1-1)
``````````diff
diff --git a/libcxx/include/__type_traits/result_of.h b/libcxx/include/__type_traits/result_of.h
index f00fa8e9be7f73..73a19447520663 100644
--- a/libcxx/include/__type_traits/result_of.h
+++ b/libcxx/include/__type_traits/result_of.h
@@ -10,7 +10,7 @@
#define _LIBCPP___TYPE_TRAITS_RESULT_OF_H
#include <__config>
-#include <__functional/invoke.h>
+#include <__type_traits/invoke.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
``````````
</details>
https://github.com/llvm/llvm-project/pull/106796
More information about the libcxx-commits
mailing list