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

Martin Nowak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from Martin Nowak <[email protected]> ---
> 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