https://issues.dlang.org/show_bug.cgi?id=14478

Martin Nowak <c...@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |c...@dawg.eu

--- Comment #11 from Martin Nowak <c...@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.

--

Reply via email to