Skip to content

Commit

Permalink
Fix mdarray mdspan conversion operator constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Oct 30, 2023
1 parent 4708c23 commit a2dc803
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/experimental/__p1684_bits/mdarray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ class mdarray {
class OtherElementType, class OtherExtents,
class OtherLayoutType, class OtherAccessorType,
/* requires */ (
_MDSPAN_TRAIT(std::is_assignable, mdspan_type,
mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType>)
_MDSPAN_TRAIT(std::is_assignable,
mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType>,
mdspan_type)
)
)
constexpr operator mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType> () {
Expand All @@ -445,8 +446,9 @@ class mdarray {
class OtherElementType, class OtherExtents,
class OtherLayoutType, class OtherAccessorType,
/* requires */ (
_MDSPAN_TRAIT(std::is_assignable, const_mdspan_type,
mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType>)
_MDSPAN_TRAIT(std::is_assignable,
mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType>,
const_mdspan_type)
)
)
constexpr operator mdspan<OtherElementType, OtherExtents, OtherLayoutType, OtherAccessorType> () const {
Expand Down

0 comments on commit a2dc803

Please sign in to comment.