[STLExtras] Make indexed_accessor_range operator== compatible with C++20
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2022 10:58:39 +0000 (12:58 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2022 11:00:30 +0000 (13:00 +0200)
commitc312f025940d79b858166b80c50526558864d54e
tree264b3128e35af1598e564f9440da53c2aa86339a
parent8ba1421432924a49ce884461f87970c6513a298f
[STLExtras] Make indexed_accessor_range operator== compatible with C++20

This would be ambigious with itself when C++20 tries to lookup the
reversed form. I didn't find a use in LLVM, but MLIR does a lot of
comparisons of ranges of different types.
llvm/include/llvm/ADT/STLExtras.h
llvm/unittests/Support/IndexedAccessorTest.cpp