This is an archive of the discontinued LLVM Phabricator instance.

[libc++] ADL-proof <iterator>. `__convert_to_integral` is not a customization point.
ClosedPublic

Authored by Quuxplusone on Dec 7 2020, 9:03 PM.

Details

Summary

The interesting change here is that we no longer consider __convert_to_integral an ADL customization point for the user's types. I think the new behavior is defensible. The old behavior had come from D7449, where Marshall explicitly said "people can't define their own [__convert_to_integral overloads]."

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Dec 7 2020, 9:03 PM
Quuxplusone created this revision.
Herald added a reviewer: Restricted Project. · View Herald TranscriptDec 7 2020, 9:03 PM
ldionne accepted this revision.Dec 8 2020, 8:16 AM
This revision is now accepted and ready to land.Dec 8 2020, 8:16 AM