A small trouble with std.range.indexed
bearophile
bearophileHUGS at lycos.com
Thu Sep 8 09:49:17 PDT 2011
Ali Çehreli:
> The documentation of indexed() says: "Source must be a random access
> range. The returned range will be bidirectional or random-access if
> Indices is bidirectional or random-access, respectively."
> Because idxSet is not RandomAccessRange, indexed() does not provide
> opIndex() and doesn't match sort()'s requirement.
You are right, I understand, thank you.
> It's unfortunate that template the error messages cannot be more
> helpful. :-/
In my opinion here it's also a matter of documentation about the kind of range needed for Indices.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list