[libcxx-commits] [libcxx] [libc++] avoid using `ranges::advance` and `ranges::next` in all algorithms (PR #179095)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 2 01:43:25 PST 2026
https://github.com/philnik777 commented:
I don't think this is the correct path. Are we seriously saying that we can't use `ranges::advance` inside `ranges::` algorithms? Given that all implementations seem to agree this should be rejected, I don't see the problem. The only issue I see is using `ranges::` algorithms inside non-ranges code, which we already knew was problematic, which is why we have the `_AlgPolicy` garbage.
https://github.com/llvm/llvm-project/pull/179095
More information about the libcxx-commits
mailing list