[libcxx-commits] [libcxx] [libc++][mdspan][NFC] Remove redundant syntax and keywords (PR #175024)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 8 11:45:03 PST 2026


================
@@ -310,7 +309,7 @@ mdspan(_ElementType*, const _MappingType&)
     -> mdspan<_ElementType, typename _MappingType::extents_type, typename _MappingType::layout_type>;
 
 template <class _MappingType, class _AccessorType>
-mdspan(const typename _AccessorType::data_handle_type, const _MappingType&, const _AccessorType&)
+mdspan(typename _AccessorType::data_handle_type, const _MappingType&, const _AccessorType&)
----------------
eiytoq wrote:

Thanks! You are right about the const. I noticed the standard actually specifies a const reference, so I will add the reference.

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


More information about the libcxx-commits mailing list