From f18e694bfa0d8a0fb44278cc33b2644c48b279aa Mon Sep 17 00:00:00 2001 From: fis Date: Sat, 18 Dec 2021 00:47:43 +0800 Subject: [PATCH] Remove type conversion in call operator. --- include/experimental/__p0009_bits/mdspan.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/experimental/__p0009_bits/mdspan.hpp b/include/experimental/__p0009_bits/mdspan.hpp index 116d3d98..66290ce9 100644 --- a/include/experimental/__p0009_bits/mdspan.hpp +++ b/include/experimental/__p0009_bits/mdspan.hpp @@ -227,7 +227,7 @@ class mdspan MDSPAN_FORCE_INLINE_FUNCTION constexpr reference operator[](Index idx) const noexcept { - return __accessor_ref().access(__ptr_ref(), __mapping_ref()(size_type(idx))); + return __accessor_ref().access(__ptr_ref(), __mapping_ref()(idx)); } #endif @@ -242,7 +242,7 @@ class mdspan MDSPAN_FORCE_INLINE_FUNCTION constexpr reference operator()(SizeTypes... indices) const noexcept { - return __accessor_ref().access(__ptr_ref(), __mapping_ref()(size_type(indices)...)); + return __accessor_ref().access(__ptr_ref(), __mapping_ref()(indices...)); } MDSPAN_TEMPLATE_REQUIRES(