www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12224] New: std.algorithm.move does not work for arrays of static length

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 22 2014
parent d-bugmail puremagic.com writes:
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



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: -------
Feb 22 2014