@@ -81,7 +81,7 @@ struct Cartesian(NdFields...)
8181 }
8282
8383 // /
84- size_t length (size_t d = 0 )() @property
84+ size_t length (size_t d = 0 )() const @property
8585 {
8686 foreach (f, ref field; _fields)
8787 static if (M! f <= d && M! (f + 1 ) > d)
@@ -95,7 +95,7 @@ struct Cartesian(NdFields...)
9595 }
9696
9797 // /
98- size_t [N] shape ()() @property
98+ size_t [N] shape ()() const @property
9999 {
100100 typeof (return ) ret;
101101 foreach (f, ref field; _fields)
@@ -115,7 +115,7 @@ struct Cartesian(NdFields...)
115115 }
116116
117117 // /
118- size_t elementCount ()() @property
118+ size_t elementCount ()() const @property
119119 {
120120 size_t ret = 1 ;
121121 foreach (ref field; _fields)
@@ -168,7 +168,7 @@ struct Kronecker(alias fun, NdFields...)
168168 private enum N = DimensionCount! (NdFields[$- 1 ]);
169169
170170 // /
171- size_t length (size_t d = 0 )() @property
171+ size_t length (size_t d = 0 )() const @property
172172 {
173173 static if (d == 0 )
174174 {
@@ -187,7 +187,7 @@ struct Kronecker(alias fun, NdFields...)
187187
188188
189189 // /
190- size_t [N] shape ()() @property
190+ size_t [N] shape ()() const @property
191191 {
192192 static if (N > 1 )
193193 {
@@ -211,7 +211,7 @@ struct Kronecker(alias fun, NdFields...)
211211 }
212212
213213 // /
214- size_t elementCount ()() @property
214+ size_t elementCount ()() const @property
215215 {
216216 size_t ret = 1 ;
217217 foreach (ref field; _fields)
0 commit comments