[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 12:05:14 PDT 2021
jloser updated this revision to Diff 367581.
jloser added a comment.
Include <type_traits> for add_lvalue_reference
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,10 @@
#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
+#include <type_traits>
#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,9 @@
#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
+#include <type_traits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108393.367581.patch
Type: text/x-patch
Size: 1100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210819/17fe0de1/attachment.bin>
More information about the libcxx-commits
mailing list