printNoGC now supports const(dchar).
This commit is contained in:
parent
fe33be52e4
commit
b3ef48f41f
|
@ -82,7 +82,7 @@ char[] printNoGC(S...)(char[] buffer, S args) @safe pure nothrow @nogc
|
|||
{
|
||||
alias A = typeof(arg);
|
||||
static if(is(A == char[]) || is(A == string)) { appender.put(arg); }
|
||||
else static if(is(A == dchar)) { appender.putDChar(arg); }
|
||||
else static if(is(Unqual!A == dchar)) { appender.putDChar(arg); }
|
||||
else static assert(false, "printNoGC does not support " ~ A.stringof);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue