-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[libc++][IWYU] Remove std::move header in std::for_each
#164272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-libcxx Author: Connector Switch (c8ef) ChangesFull diff: https://github.com/llvm/llvm-project/pull/164272.diff 1 Files Affected:
diff --git a/libcxx/include/__algorithm/for_each.h b/libcxx/include/__algorithm/for_each.h
index e31fcae83a332..c80195a83287f 100644
--- a/libcxx/include/__algorithm/for_each.h
+++ b/libcxx/include/__algorithm/for_each.h
@@ -16,7 +16,6 @@
#include <__iterator/segmented_iterator.h>
#include <__type_traits/enable_if.h>
#include <__type_traits/invoke.h>
-#include <__utility/move.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
|
|
I guess we don't need to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove them, actually. We usually don't put them somewhere unless they're needed.
|
Oh, it seems like the auto merge isn't working as I expected. I think I have removed the correct macro. |
It seems this was accidentally included; there's no use of std::move in this header.