May 08, 2012 [Issue 8067] New: std.algorithm.move doesn't work for static array of elaborate struct | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@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: ------- |
November 03, 2012 [Issue 8067] std.algorithm.move doesn't work for static array of elaborate struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=8067 Denis Shelomovskij <verylonglogin.reg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |verylonglogin.reg@gmail.com --- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-11-03 22:50:28 MSK --- Fixed with all other `move` issues in [provoking] https://github.com/D-Programming-Language/phobos/pull/923 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation