[PATCH] D112981: Fix iterator_adaptor_base/enumerator_iter to allow composition of llvm::enumerate with llvm::make_filter_range

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 1 21:55:54 PDT 2021


mehdi_amini added inline comments.


================
Comment at: llvm/unittests/ADT/IteratorTest.cpp:186
+  SmallVector<int> Actual;
+  for (auto IndexedValue : make_filter_range(Enumerate, IsOdd))
+    Actual.push_back(IndexedValue.value());
----------------
mehdi_amini wrote:
> (This is to fail to compile)
(I meant: this used to fail to compile)




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112981



More information about the llvm-commits mailing list