std.algorithm.among
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jul 13 10:55:35 PDT 2014
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
More information about the Digitalmars-d-learn
mailing list