Skip to content

Commit 3f2fdbb

Browse files
committed
Fix a missing const
1 parent e257e37 commit 3f2fdbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/simple.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ struct Dim2
1717
};
1818

1919
// For the purpose of the demonstration, this function makes only sense with Dim2
20-
int sum_over_dim2(ddc::ChunkSpan<int, ddc::DiscreteDomain<Dim2>> slice)
20+
int sum_over_dim2(ddc::ChunkSpan<int, ddc::DiscreteDomain<Dim2>> const slice)
2121
{
2222
int sum = 0;
23-
for (ddc::DiscreteElement<Dim2> idx2 : slice.domain()) {
23+
for (ddc::DiscreteElement<Dim2> const idx2 : slice.domain()) {
2424
sum += slice(idx2);
2525
}
2626
return sum;

0 commit comments

Comments
 (0)