https://issues.dlang.org/show_bug.cgi?id=16033
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from [email protected] --- > In my understanding elements can be immutable and const, but assigning > elements isn't. So shouldn't it be possible to use emplace to swap them > around? Swapping stuff around means writing (to both locations). But you can't overwrite immutable data, and you can't write through a const reference. So no, you can't swap const or immutable elements. Doing so would break the guarantees that const and immutable give. Closing as invalid. Please reopen if I'm missing something. Or maybe make a thread on D.learn if the details of immutable and const are not clear. http://forum.dlang.org/group/learn --
