[libcxx-commits] [PATCH] D122173: [libc++][ranges] Implement ranges::transform

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 29 08:07:25 PDT 2022


ldionne added inline comments.


================
Comment at: libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.pass.cpp:50
+concept HasTranformR = requires(Range r, int* out) {
+  std::ranges::transform(r, out, [](int) { return 0; });
+  std::ranges::transform(r, r, out, [](int, int) { return 0; });
----------------
You could fix the macOS CI issue (which is really an AppleClang-13 issue) by doing something like `std::ranges::transform(r, out, std::identity())` instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122173



More information about the libcxx-commits mailing list