mirror of
https://github.com/dlang/phobos.git
synced 2025-05-02 16:10:45 +03:00
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 commit8dbfc1a738
, reversing changes made to93c724f2a3
.
This commit is contained in:
parent
b8531d46a9
commit
05538fe8fc
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue