[libcxx-commits] [PATCH] D117940: [libc++] [ranges] Implement std::ranges::distance

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 22 13:48:01 PST 2022


Quuxplusone updated this revision to Diff 402258.
Quuxplusone marked 3 inline comments as done.
Quuxplusone edited the summary of this revision.
Quuxplusone added a reviewer: CaseyCarter.
Quuxplusone added a comment.

Wow, niebloid.compile.pass.cpp caught a real LWG-worthy bug! `std::ranges::distance(a, a+10)` didn't compile, and I hadn't thought to test that case directly in my new tests. Now I'm testing it (and have implemented a workaround while we wait for the LWG issue to be recorded).


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

https://reviews.llvm.org/D117940

Files:
  libcxx/docs/Status/Cxx2bIssues.csv
  libcxx/docs/Status/RangesPaper.csv
  libcxx/include/__iterator/distance.h
  libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.distance/iterator_sentinel.pass.cpp
  libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.distance/range.pass.cpp
  libcxx/test/std/library/description/conventions/customization.point.object/niebloid.compile.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117940.402258.patch
Type: text/x-patch
Size: 17405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220122/baad4817/attachment-0001.bin>


More information about the libcxx-commits mailing list