[Issue 15798] New: std.algorithm.mutation.copy takes target by value
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 14 17:10:49 PDT 2016
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 at puremagic.com
Reporter: destructionator at 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!
--
More information about the Digitalmars-d-bugs
mailing list