diff --git a/stl/inc/mdspan b/stl/inc/mdspan index d956cb23431..0cc5d80650c 100644 --- a/stl/inc/mdspan +++ b/stl/inc/mdspan @@ -1075,6 +1075,8 @@ struct _Mdspan_mapping_base { constexpr explicit _Mdspan_mapping_base(const _Extents& _Exts) : _Map(_Exts) {} + constexpr explicit _Mdspan_mapping_base(_Extents&& _Exts) : _Map(_STD move(_Exts)) {} + template constexpr explicit _Mdspan_mapping_base(const _OtherMapping& _Map_) : _Map(_Map_) {} @@ -1091,6 +1093,8 @@ struct _Mdspan_mapping_base<_Extents, _LayoutPolicy> { constexpr explicit _Mdspan_mapping_base(const _Extents&) noexcept {} + constexpr explicit _Mdspan_mapping_base(_Extents&&) noexcept {} + template constexpr explicit _Mdspan_mapping_base(const _OtherMapping& _Map_) { // NB: Constructing _Mapping from _OtherMapping may have side effects - we should create a temporary.