[libcxx-commits] [libcxx] ba40737 - [libc++][modules] Include __type_traits/invoke.h from __type_traits/result_of.h (#106796)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 4 08:17:09 PDT 2024
Author: Louis Dionne
Date: 2024-09-04T11:17:05-04:00
New Revision: ba40737e819b4ca77b25c0950c47c305a15a93de
URL: https://github.com/llvm/llvm-project/commit/ba40737e819b4ca77b25c0950c47c305a15a93de
DIFF: https://github.com/llvm/llvm-project/commit/ba40737e819b4ca77b25c0950c47c305a15a93de.diff
LOG: [libc++][modules] Include __type_traits/invoke.h from __type_traits/result_of.h (#106796)
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.
Added:
Modified:
libcxx/include/__type_traits/result_of.h
Removed:
################################################################################
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
More information about the libcxx-commits
mailing list