[libc++] [LIBCXX-DEBUG-FIXME] std::advance shouldn't use ADL `>=` on the _Distance...
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Tue, 20 Apr 2021 19:59:22 +0000 (15:59 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 5 May 2021 20:21:09 +0000 (16:21 -0400)
commit9571b8f238f97bce01bcf3c84a4f87cfb1c00dbf
tree03ed35b86c28421d5f1c6ad1bcd97ebc31aee42e
parent165ad89947e8ef6c08c80eb067d85b4fa9074904
[libc++] [LIBCXX-DEBUG-FIXME] std::advance shouldn't use ADL `>=` on the _Distance type.

Convert to a primitive type first; then use primitive `>=` on that value.

Differential Revision: https://reviews.llvm.org/D101678
libcxx/include/iterator
libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp