D's equivalent to C++'s std::move?

Era Scarecrow via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 9 18:10:06 PST 2016


On Tuesday, 9 February 2016 at 00:25:33 UTC, Matt Elkins wrote:
> Done (sorry for the delay): 
> https://issues.dlang.org/show_bug.cgi?id=15662

I'll have to reiterate that this is closely related to another 
bug (or maybe the same thing, just a lot more compact).

https://issues.dlang.org/show_bug.cgi?id=7032

Bug 7032 refers to opAssign being defined (and being ignored) due 
to the postblit. A simpler test to what effectively is the same 
problem is just disabling the postblit (and nothing else).

[code]
struct S {
   @disable this(this);
}

S[] s;
s ~= S(); //error, is not copyable because it is annotated with 
@disable
[/code]


  I currently can't seem to register/reset/login to bugzilla so i 
can't post this there :( Could be a change with the site since i 
haven't been there in 2 years...


More information about the Digitalmars-d mailing list