This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [LIBCXX-DEBUG-FIXME] std::advance shouldn't use ADL `>=` on the _Distance type.
ClosedPublic

Authored by Quuxplusone on Apr 30 2021, 4:59 PM.

Details

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

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Apr 30 2021, 4:59 PM
Quuxplusone created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptApr 30 2021, 4:59 PM

poke buildkite

Mordante accepted this revision as: Mordante.May 2 2021, 6:54 AM
Mordante added a subscriber: Mordante.

LGTM!

ldionne accepted this revision.May 5 2021, 10:55 AM
This revision is now accepted and ready to land.May 5 2021, 10:55 AM