Skip to content

Commit 52bc0e9

Browse files
committed
workaround for _freshEmpty
1 parent 0ec9eb9 commit 52bc0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/mir/algorithm/iteration.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3801,15 +3801,15 @@ struct Filter(alias pred, Range)
38013801
void popFront() scope
38023802
{
38033803
assert(!_input.empty, "Attempting to popFront an empty Filter.");
3804-
assert(_freshEmpty, "Attempting to pop the front of a Filter without calling '.empty' method ahead.");
3804+
version(assert) assert(_freshEmpty, "Attempting to pop the front of a Filter without calling '.empty' method ahead.");
38053805
version(assert) _freshEmpty = false;
38063806
_input.popFront;
38073807
}
38083808

38093809
auto ref front() @property
38103810
{
38113811
assert(!_input.empty, "Attempting to fetch the front of an empty Filter.");
3812-
assert(_freshEmpty, "Attempting to fetch the front of a Filter without calling '.empty' method ahead.");
3812+
version(assert) assert(_freshEmpty, "Attempting to fetch the front of a Filter without calling '.empty' method ahead.");
38133813
return _input.front;
38143814
}
38153815

0 commit comments

Comments
 (0)