https://issues.dlang.org/show_bug.cgi?id=15798
Issue ID: 15798
Summary: std.algorithm.mutation.copy takes target by value
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
See: http://stackoverflow.com/a/36000424/1457000
Try copying into a MD5. It is recognized as an output range and triggers the
overload that just calls put(dst, src), but since the target was passed by
value, the change is not seen on the outside!
--