[libcxx-commits] [PATCH] D108393: [libc++] Include <__iterator/distance.h> instead of <iterator> in a few algorithm headers

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 19 11:53:21 PDT 2021


Quuxplusone added inline comments.


================
Comment at: libcxx/include/__algorithm/equal.h:16
+#include <__iterator/distance.h>
 #include <__iterator/iterator_traits.h>
 
----------------
You need `<type_traits>` in both places now, for `add_lvalue_reference_t`. Otherwise the modules build breaks.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108393/new/

https://reviews.llvm.org/D108393



More information about the libcxx-commits mailing list