[Issue 15315] can break immutable with std.algorithm.move

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 24 16:24:39 PDT 2017


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #2 from hsteoh at quickfur.ath.cx ---
Wait, what? Aren't *both* k1.id and k2.id *immutable*?  How could move(k2,k1)
be valid, since it would overwrite k1, which violates the immutability of
k1.id?

--


More information about the Digitalmars-d-bugs mailing list