Skip to content

Commit

Permalink
Remove type conversion in call operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Dec 17, 2021
1 parent 183cab2 commit f18e694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/experimental/__p0009_bits/mdspan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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(
Expand Down

0 comments on commit f18e694

Please sign in to comment.