Why is sort allocating in this case?
Vladimir Panteleev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 18 19:30:48 PDT 2015
On Friday, 18 September 2015 at 02:21:13 UTC, Jack Stouffer wrote:
> The docs explicitly say that SwapStrategy.unstable is
> non-allocating, but this code (which is for finding the
> statistical mode of a range) will fail to compile.
Perhaps related to this issue you filed?
https://issues.dlang.org/show_bug.cgi?id=15003
sort calls assumeSorted, so it's affected by the same problem.
More information about the Digitalmars-d-learn
mailing list