static assert(is(Unqual!(const char) == char)); (Succeeds) static assert(is(Unqual!(const(char)[]) == char[])); Error: static assert: `is(const(char)[] == char[])` is falseIs the template trying to strip the qualifier from the [] rather than the char?
I am trying to write templated code that will take a character array --
mutable, const, or immutable (string).
- How to Unqual an array? James Blachly via Digitalmars-d-learn
- Re: How to Unqual an arr... James Blachly via Digitalmars-d-learn
- Re: How to Unqual an... Anonymouse via Digitalmars-d-learn
- Re: How to Unqual an... Steven Schveighoffer via Digitalmars-d-learn
- Re: How to Unqual an... James Blachly via Digitalmars-d-learn