Skip to content

Commit

Permalink
use MDSPAN_IMPL_PRECONDITION in layout_padded_fwd
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlee committed May 6, 2024
1 parent 0c3fe37 commit bca02b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/experimental/__p2642_bits/layout_padded_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ constexpr void check_padded_layout_converting_constructor_preconditions(MDSPAN_I
layout_padded_constants<typename _OtherMapping::layout_type,
_ExtentsType>::padded_stride_idx;
constexpr auto extent_to_pad_idx = layout_padded_constants<typename _OtherMapping::layout_type, _ExtentsType>::extent_to_pad_idx;
assert(other_mapping.stride(padded_stride_idx) == other_mapping.extents().extent(extent_to_pad_idx));
MDSPAN_IMPL_PRECONDITION(other_mapping.stride(padded_stride_idx) == other_mapping.extents().extent(extent_to_pad_idx));
}


Expand Down

0 comments on commit bca02b8

Please sign in to comment.