Remove bug 9578 workaround

Because the compiler bug was fixed recently.

---
Revert "Merge pull request #1178 from denis-sh/add-Issue-9578-workaround-to-`std.algorithm.all`"

This reverts commit 8dbfc1a738, reversing
changes made to 93c724f2a3.
This commit is contained in:
k-hara 2013-07-10 19:27:36 +09:00
parent b8531d46a9
commit 05538fe8fc

View file

@ -9949,10 +9949,7 @@ assert(!all!"a & 1"([1, 2, 3, 5, 7, 9]));
bool all(alias pred, R)(R range)
if (isInputRange!R && is(typeof(unaryFun!pred(range.front))))
{
// dmd @@@BUG9578@@@ workaround
// return find!(not!(unaryFun!pred))(range).empty;
bool notPred(ElementType!R a) { return !unaryFun!pred(a); }
return find!notPred(range).empty;
return find!(not!(unaryFun!pred))(range).empty;
}
unittest