Timon Gehr:

I am saying the following code implementing 'until' in std.algorithm is at fault:

    private bool predSatisfied() // <-- don't say bool here
    {
        static if (is(Sentinel == void))
            return unaryFun!pred(_input.front); // or cast here
        else
return startsWith!pred(_input, _sentinel); // and here
    }

https://issues.dlang.org/show_bug.cgi?id=13124

Bye,
bearophile

Reply via email to