From b3ef48f41f337271073a60c62e52aa3735f84c0f Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Fri, 25 Jul 2014 17:30:35 +0200 Subject: [PATCH] printNoGC now supports const(dchar). --- source/dyaml/nogcutil.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dyaml/nogcutil.d b/source/dyaml/nogcutil.d index dcabec4..9f01214 100644 --- a/source/dyaml/nogcutil.d +++ b/source/dyaml/nogcutil.d @@ -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); }