We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e257e37 commit 3f2fdbbCopy full SHA for 3f2fdbb
examples/simple.cpp
@@ -17,10 +17,10 @@ struct Dim2
17
};
18
19
// 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)
+int sum_over_dim2(ddc::ChunkSpan<int, ddc::DiscreteDomain<Dim2>> const slice)
21
{
22
int sum = 0;
23
- for (ddc::DiscreteElement<Dim2> idx2 : slice.domain()) {
+ for (ddc::DiscreteElement<Dim2> const idx2 : slice.domain()) {
24
sum += slice(idx2);
25
}
26
return sum;
0 commit comments