February 22, 2014 [Issue 12224] New: std.algorithm.move does not work for arrays of static length | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=12224 Summary: std.algorithm.move does not work for arrays of static length Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: simon.buerger@rwth-aachen.de --- Comment #0 from Simon <simon.buerger@rwth-aachen.de> 2014-02-22 05:47:08 PST --- std.algorithm.move does not avoid postblit/destructor for arrays of static length (which are value-types). Both variants of move (one and two parameters) have this issue. struct S { this(this) { writefln("copy"); } } void main() { S[1] a, b; b = move(a); // calls copy-constructor but should not move(a, b); // ditto } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 22, 2014 [Issue 12224] std.algorithm.move does not work for arrays of static length | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simon | https://d.puremagic.com/issues/show_bug.cgi?id=12224 Simon <simon.buerger@rwth-aachen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Simon <simon.buerger@rwth-aachen.de> 2014-02-22 08:02:54 PST --- *** This issue has been marked as a duplicate of issue 8067 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation