[libcxx-commits] [libcxx] [libc++][ranges] P2164R9: Implements `views::enumerate` (PR #73617)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Sep 27 08:14:34 PDT 2025
================
@@ -75,4 +75,5 @@ static_assert(!CanFindADLFunc<std::ranges::transform_view<adl::BaseView, adl::Pr
#if TEST_STD_VER >= 23
static_assert(!CanFindADLFunc<std::ranges::zip_view<adl::BaseView>>);
+static_assert(!CanFindADLFunc<std::ranges::enumerate_view<adl::BaseView>>);
----------------
frederick-vs-ja wrote:
> Since `views::enumerate` is a function object, it should be suffice to test that it has a class type.
That's not related to this file. `libcxx/test/std/ranges/iterator_robust_against_adl.compile.pass.cpp` tests that iterator types are ADL-proof, not that `views::enumerate` doesn't trigger ADL.
The latter is tested in `libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp`.
https://github.com/llvm/llvm-project/pull/73617
More information about the libcxx-commits
mailing list