Fix Issue 19838 - RefCounted fails to instantiate due to pureness of moveEmplace

This commit is contained in:
Márcio Martins 2019-05-15 11:44:54 +02:00
parent 24209a6cb7
commit 2e408f13ea

View file

@ -1375,7 +1375,7 @@ private T moveImpl(T)(ref T source)
* source = value to be moved into target
* target = uninitialized value to be filled by source
*/
void moveEmplace(T)(ref T source, ref T target) @system
void moveEmplace(T)(ref T source, ref T target) pure @system
{
import core.stdc.string : memcpy, memset;
import std.traits : hasAliasing, hasElaborateAssign,