http://d.puremagic.com/issues/show_bug.cgi?id=8067
Summary: std.algorithm.move doesn't work for static array of elaborate struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2012-05-08 10:20:38 PDT --- This code doesn't work. import std.algorithm, std.traits; void main() { static int postblit, dtor; static struct S2 { this(this){ ++postblit; } ~this(){ ++dtor; } } S2[3] sa21; postblit = dtor = 0; S2[3] sa22 = move(sa21); assert(postblit == 0); // fails } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------