From 8c812215f18154984c4b73fba832f1fa0e7bd401 Mon Sep 17 00:00:00 2001 From: Seyong Lee Date: Wed, 2 Sep 2026 14:13:19 -0400 Subject: [PATCH] Change global tag variables to local variables. Signed-off-by: Seyong Lee --- include/experimental/__p0009_bits/layout_stride.hpp | 2 +- .../experimental/__p2630_bits/submdspan_mapping.hpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/experimental/__p0009_bits/layout_stride.hpp b/include/experimental/__p0009_bits/layout_stride.hpp index 0333547a..2dede449 100644 --- a/include/experimental/__p0009_bits/layout_stride.hpp +++ b/include/experimental/__p0009_bits/layout_stride.hpp @@ -367,7 +367,7 @@ struct layout_stride { #else : base_t(base_t{member_pair_t( #endif - e, strides_storage_t(deduction_workaround_impl::fill_strides(mdspan_non_standard, s)) + e, strides_storage_t(deduction_workaround_impl::fill_strides(mdspan_non_standard_tag(), s)) #if defined(MDSPAN_IMPL_USE_ATTRIBUTE_NO_UNIQUE_ADDRESS) } #else diff --git a/include/experimental/__p2630_bits/submdspan_mapping.hpp b/include/experimental/__p2630_bits/submdspan_mapping.hpp index be7fcfb2..cd691e02 100644 --- a/include/experimental/__p2630_bits/submdspan_mapping.hpp +++ b/include/experimental/__p2630_bits/submdspan_mapping.hpp @@ -252,7 +252,7 @@ layout_left::mapping::submdspan_mapping_impl( auto inv_map = detail::inv_map_rank(std::integral_constant(), std::index_sequence<>(), slices...); return submdspan_mapping_result { - dst_mapping_t(mdspan_non_standard, dst_ext, + dst_mapping_t(mdspan_non_standard_tag(), dst_ext, detail::construct_sub_strides( *this, inv_map, // HIP needs deduction guides to have markups so we need to be explicit @@ -333,7 +333,7 @@ layout_left_padded::mapping::submdspan_mapping_impl( std::index_sequence<>(), slices...); using dst_mapping_t = typename layout_stride::template mapping; return submdspan_mapping_result { - dst_mapping_t(mdspan_non_standard, dst_ext, + dst_mapping_t(mdspan_non_standard_tag(), dst_ext, MDSPAN_IMPL_STANDARD_NAMESPACE::detail::construct_sub_strides( *this, inv_map, // HIP needs deduction guides to have markups so we need to be explicit @@ -488,7 +488,7 @@ layout_right::mapping::submdspan_mapping_impl( auto inv_map = detail::inv_map_rank(std::integral_constant(), std::index_sequence<>(), slices...); return submdspan_mapping_result { - dst_mapping_t(mdspan_non_standard, dst_ext, + dst_mapping_t(mdspan_non_standard_tag(), dst_ext, detail::construct_sub_strides( *this, inv_map, // HIP needs deduction guides to have markups so we need to be explicit @@ -561,7 +561,7 @@ layout_right_padded::mapping::submdspan_mapping_impl( std::index_sequence<>(), slices...); using dst_mapping_t = typename layout_stride::template mapping; return submdspan_mapping_result { - dst_mapping_t(mdspan_non_standard, dst_ext, + dst_mapping_t(mdspan_non_standard_tag(), dst_ext, MDSPAN_IMPL_STANDARD_NAMESPACE::detail::construct_sub_strides( *this, inv_map, // HIP needs deduction guides to have markups so we need to be explicit @@ -613,7 +613,7 @@ layout_stride::mapping::submdspan_mapping_impl( : this->operator()(detail::first_of(slices)...)); return submdspan_mapping_result { - dst_mapping_t(mdspan_non_standard, dst_ext, + dst_mapping_t(mdspan_non_standard_tag(), dst_ext, detail::construct_sub_strides( *this, inv_map, // HIP needs deduction guides to have markups so we need to be explicit