[libcxx-commits] [libcxx] WIP [libc++][ranges] Add `convertible_to` test case for `enumerate_view` iterator ctor test (PR #212044)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 28 01:31:44 PDT 2026


================
@@ -43,6 +43,7 @@ constexpr void test() {
   };
 
   static_assert(std::is_convertible_v<EnumerateIterator, EnumerateConstIterator>);
+  static_assert(std::convertible_to<EnumerateIterator, EnumerateConstIterator>);
----------------
H-G-Hristov wrote:

BTW. This tests fails to test the converting constructor. So I suggest that this PR makes all necessary changes to fix the entire test. This was on my ToDo but I think @lknknm will do it.

https://github.com/llvm/llvm-project/pull/212044


More information about the libcxx-commits mailing list