Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JMazurkiewicz committed Jul 4, 2023
1 parent fd46140 commit 7e7c09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stl/inc/mdspan
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ template <class _IndexType>
struct _Maybe_empty_array<_IndexType, 0> {};

template <size_t... _Extents>
inline constexpr size_t _Calculate_rank_dynamic = ((_Extents == dynamic_extent) + ... + 0);
inline constexpr size_t _Calculate_rank_dynamic = (static_cast<size_t>(_Extents == dynamic_extent) + ... + 0);

_EXPORT_STD template <class _IndexType, size_t... _Extents>
class extents : private _Maybe_empty_array<_IndexType, _Calculate_rank_dynamic<_Extents...>> {
Expand Down

0 comments on commit 7e7c09e

Please sign in to comment.