[libcxx-commits] [PATCH] D108393: [libc++] Include <__iterator/distance.h> instead of <iterator> in a few algorithm headers
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 19 10:53:53 PDT 2021
jloser updated this revision to Diff 367550.
jloser added a comment.
Sort includes in libcxx/include/__algorithm/equal.h
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108393/new/
https://reviews.llvm.org/D108393
Files:
libcxx/include/__algorithm/equal.h
libcxx/include/__algorithm/is_permutation.h
Index: libcxx/include/__algorithm/is_permutation.h
===================================================================
--- libcxx/include/__algorithm/is_permutation.h
+++ libcxx/include/__algorithm/is_permutation.h
@@ -12,9 +12,9 @@
#include <__algorithm/comp.h>
#include <__config>
+#include <__iterator/distance.h>
#include <__iterator/iterator_traits.h>
#include <__iterator/next.h>
-#include <iterator> // FIXME: replace with <__iterator/distance.h> when it lands
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
Index: libcxx/include/__algorithm/equal.h
===================================================================
--- libcxx/include/__algorithm/equal.h
+++ libcxx/include/__algorithm/equal.h
@@ -12,8 +12,8 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__iterator/distance.h>
#include <__iterator/iterator_traits.h>
-#include <iterator> // FIXME: replace with <__iterator/distance.h> when it lands
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108393.367550.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210819/f5c37e1a/attachment-0001.bin>
More information about the libcxx-commits
mailing list