[Issue 14478] isInputRange failed to recognize some ranges
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 23 04:41:25 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14478
Martin Nowak <code at dawg.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |code at dawg.eu
--- Comment #11 from Martin Nowak <code at dawg.eu> ---
> I've seen plenty of cases in code where something like
>
> auto value = range.front;
Algorithms shouldn't needlessly copy values because it might be expensive, e.g.
with big values.
We should probably add an isCopyable!(ElementType!R) to the algorithms that do
require this.
--
More information about the Digitalmars-d-bugs
mailing list