[Issue 15662] Cannot move struct with defined opAssign due to @disabled post-blit

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 9 16:43:10 PST 2016


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

Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv

--- Comment #3 from Dicebot <public at dicebot.lv> ---
(In reply to Steven Schveighoffer from comment #2)
> we should create a moveAppend function that allows this (would destroy old
> elements if they have to be moved).

This seems quite fitting for a `Buffer` concept which we are switching to from
built-in arrays to keep D1 array stomping behavior (effectively a wrapper over
array which owns that array and calls `assumeSafeAppend` each time length is
changed).

--


More information about the Digitalmars-d-bugs mailing list