printNoGC now supports const(dchar).

This commit is contained in:
Ferdinand Majerech 2014-07-25 17:30:35 +02:00
parent fe33be52e4
commit b3ef48f41f

View file

@ -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);
}