[libcxx-commits] [libcxx] [libc++][ranges] LWG3736: `move_iterator` missing `disable_sized_sentinel_for` specialization (PR #85611)

Xiaoyang Liu via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 11 14:25:47 PDT 2024


================
@@ -475,6 +475,11 @@ constexpr move_iterator<Iterator> operator+(   // constexpr in C++17
 template <class Iterator>   // constexpr in C++17
 constexpr  move_iterator<Iterator> make_move_iterator(const Iterator& i);
 
+template<class Iterator1, class Iterator2>
+    requires (!sized_sentinel_for<Iterator1, Iterator2>)
+  inline constexpr bool disable_sized_sentinel_for<move_iterator<Iterator1>,    // since C++20
----------------
xiaoyang-sde wrote:

No worries! It's nice to learn about how we handle LWG issues.

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


More information about the libcxx-commits mailing list