Fix compile error in internal API.

This commit is contained in:
Sönke Ludwig 2017-10-30 22:56:19 +01:00
parent 340357d455
commit ecd981b1e1
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

@ -26,7 +26,7 @@ auto makeGCSafe(T, Allocator, A...)(Allocator allocator, A args)
static if (is (T == class)) enum tsize = __traits(classInstanceSize, T); static if (is (T == class)) enum tsize = __traits(classInstanceSize, T);
else enum tsize = T.sizeof; else enum tsize = T.sizeof;
static if (hasIndirections!T) static if (hasIndirections!T)
GC.addRange(cast(void*)ret, tsize, typeid(T)); () @trusted { GC.addRange(cast(void*)ret, tsize, typeid(T)); } ();
return ret; return ret;
} }