[llvm] [llvm][ADT] Use ADL to find begin()/end() in interleave* (PR #87669)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 15:21:19 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);
----------------
kuhar 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".
yep, absolutely
https://github.com/llvm/llvm-project/pull/87669
More information about the llvm-commits
mailing list