[libcxx-commits] [PATCH] D117240: [libc++] Fix bug in ranges::advance and refactor the tests
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 25 09:47:43 PST 2022
Mordante added a comment.
I didn't look closely but noticed a style issue.
================
Comment at: libcxx/include/__iterator/advance.h:153
+ // __magnitude_geq(a, b) returns |a| >= |b|, assuming they have the same sign.
+ auto __magnitude_geq = [](auto a, auto b) {
+ if (a == 0) return b == 0;
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117240/new/
https://reviews.llvm.org/D117240
More information about the libcxx-commits
mailing list