Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue 9350 - findAdjacent infinite range warning

  • Loading branch information...
commit e7ccc0d45ea242945e20137d3fac8b3f2a51fe76 1 parent 00c95c1
@Poita Poita authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  std/algorithm.d
View
3  std/algorithm.d
@@ -5460,7 +5460,8 @@ Range findAdjacent(alias pred = "a == b", Range)(Range r)
if (binaryFun!(pred)(r.front, ahead.front)) return r;
}
}
- return ahead;
+ static if (!isInfinite!Range)
+ return ahead;
}
unittest
Please sign in to comment.
Something went wrong with that request. Please try again.