I am trying to write templated code that will take a character array -- mutable, const, or immutable (string).

static assert(is(Unqual!(const char) == char));

(Succeeds)

static assert(is(Unqual!(const(char)[]) == char[]));

Error: static assert:  `is(const(char)[] == char[])` is false


Is the template trying to strip the qualifier from the [] rather than the char?

Reply via email to