[libcxx-commits] [libcxx] [libc++][ranges] Mark LWG3664 as resolved (PR #210550)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 19 00:16:02 PDT 2026


================
@@ -13,7 +13,7 @@
 //     constexpr iter_difference_t<I> ranges::distance(I first, S last);
 //
 // template<class I, sized_sentinel_for<decay_t<I>> S>
-//   constexpr iter_difference_t<I> ranges::distance(const I& first, S last);
+//   constexpr iter_difference_t<decay_t<I>> ranges::distance(I&& first, S last);
----------------
frederick-vs-ja wrote:

I think it would be better to merge both test files.

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


More information about the libcxx-commits mailing list