digitalmars.D.bugs - [Issue 15798] New: std.algorithm.mutation.copy takes target by value
- via Digitalmars-d-bugs (18/18) Mar 14 2016 https://issues.dlang.org/show_bug.cgi?id=15798
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: nobody puremagic.com Reporter: destructionator gmail.com 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! --
Mar 14 2016