Merge pull request #7006 from marcioapm/fix_19838

Fix Issue 19838 - RefCounted fails to instantiate due to pureness of …
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2019-07-10 13:11:38 +02:00 committed by GitHub
commit 1a66781127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1374,7 +1374,7 @@ private T moveImpl(T)(ref T source)
* source = value to be moved into target * source = value to be moved into target
* target = uninitialized value to be filled by source * 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 core.stdc.string : memcpy, memset;
import std.traits : hasAliasing, hasElaborateAssign, import std.traits : hasAliasing, hasElaborateAssign,