We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3846f05 commit 805a473Copy full SHA for 805a473
source/mir/ndslice/topology.d
@@ -4106,7 +4106,6 @@ template member(string name)
4106
assert(matrix.member!"y" == [2, 3].iota * 2);
4107
}
4108
4109
-
4110
version(D_Exceptions)
4111
private immutable orthogonalReduceFieldException = new Exception("orthogonalReduceField: Slice composed of fields must not be empty");
4112
@@ -4130,7 +4129,7 @@ template orthogonalReduceField(alias fun)
4130
4129
if (_expect(slice.empty, false))
4131
{
4132
4133
- return orthogonalReduceFieldException;
+ throw orthogonalReduceFieldException;
4134
else
4135
assert(0);
4136
0 commit comments