Skip to content

Commit

Permalink
Update single header
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle authored and github-actions[bot] committed Feb 3, 2024
1 parent 5900bb8 commit 22d87d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions single_include/flux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5128,8 +5128,10 @@ struct cartesian_traits_base_impl {
requires (CartesianKind == cartesian_kind::product
&& (sized_sequence<Bases> && ...))
{
return std::apply([](auto&... base) {
return (flux::size(base) * ...);
return std::apply([](auto& base0, auto&... bases) {
distance_t sz = flux::size(base0);
((sz = num::checked_mul(sz, flux::size(bases))), ...);
return sz;
}, self.bases_);
}

Expand Down

0 comments on commit 22d87d8

Please sign in to comment.