You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the conversion to mdspan and the to_mdspan are templated with different template arguments
template<class OtherElementType, class OtherExtents,
class OtherLayoutType, class OtherAccessorType>
operator mdspan ();
template<class OtherAccessorType>
constexpr mdspan<element_type, extents_type, layout_type, OtherAccessorType>
to_mdspan(const OtherAccessorType& a = default_accessor<element_type>());
That prevents us from using CTAD for the common use case where one converts to a matching mdspan. We should provide untemplated overloads so that this works
The text was updated successfully, but these errors were encountered:
miscco
changed the title
P1684R4: Conversions and to_mdspan should provide untemplated overloads
P1684R5: Conversions and to_mdspan should provide untemplated overloads
Dec 10, 2024
Currently the conversion to mdspan and the
to_mdspan
are templated with different template argumentsThat prevents us from using CTAD for the common use case where one converts to a matching mdspan. We should provide untemplated overloads so that this works
The text was updated successfully, but these errors were encountered: