[llvm] [llvm][ADT] Use ADL to find begin()/end() in interleave* (PR #87669)
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 14:37:18 PDT 2024
================
@@ -2151,15 +2151,15 @@ template <typename Container, typename UnaryFunctor, typename NullaryFunctor,
!std::is_constructible<StringRef, NullaryFunctor>::value>>
inline void interleave(const Container &c, UnaryFunctor each_fn,
NullaryFunctor between_fn) {
- interleave(c.begin(), c.end(), each_fn, between_fn);
+ interleave(adl_begin(c), adl_end(c), each_fn, between_fn);
----------------
jroelofs wrote:
Agreed, but I don't want to do that as part of this patch, so as to quickly unblock https://github.com/llvm/llvm-project/pull/87585 doing the "right thing".
https://github.com/llvm/llvm-project/pull/87669
More information about the llvm-commits
mailing list