[libcxx-commits] [libcxx] [libc++] Fix value category issues in `mdspan::operator[]` bounds checking (PR #192269)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 4 00:08:15 PDT 2026


================
@@ -433,6 +436,15 @@ class extents {
     }
     return true;
   }
+
+  template <class _OtherIndexType>
+  _LIBCPP_HIDE_FROM_ABI static constexpr auto __index_cast(_OtherIndexType&& __i) noexcept {
----------------
frederick-vs-ja wrote:

This implements [LWG4020](https://cplusplus.github.io/LWG/issue4020) (#171311). We should also mention it LWG4020 in the title, update the entry in the status table, and close the associated GitHub issue.

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


More information about the libcxx-commits mailing list