Fix compile error in internal API.
This commit is contained in:
parent
340357d455
commit
ecd981b1e1
|
@ -26,7 +26,7 @@ auto makeGCSafe(T, Allocator, A...)(Allocator allocator, A args)
|
|||
static if (is (T == class)) enum tsize = __traits(classInstanceSize, T);
|
||||
else enum tsize = T.sizeof;
|
||||
static if (hasIndirections!T)
|
||||
GC.addRange(cast(void*)ret, tsize, typeid(T));
|
||||
() @trusted { GC.addRange(cast(void*)ret, tsize, typeid(T)); } ();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue