On 07/13/2014 03:09 PM, bearophile wrote:
Timon Gehr:

It works with filter, so I think it should just work with until as well.

So do you suggest me to open a bug report where I ask "among" to return
a bool, or do you suggest to ask for an enhancement of "until", or what?

Bye,
bearophile

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
    }

Reply via email to