Programming for std.log
Adam D. Ruppe
destructionator at gmail.com
Sun Feb 12 14:11:22 PST 2012
On Sunday, 12 February 2012 at 21:43:57 UTC, Jose Armando Garcia
wrote:
> Very helpful advice! I narrowed it down to:
>
> $ cat format spec.d
> import std.format;
> void main() {
> static assert(is(Unqual!char == char));
> FormatSpec!char spec;
> }
>
> ../dmd/src/dmd -w format spec.d
> format spec.d(4): Error: static assert (is(Unqual!(char) ==
> char)) is false
>
> This is suppose to be true, no?
It is if you import std.traits. I don't think
the Unqual template is in scope there which is why
the is() fails.
More information about the Digitalmars-d
mailing list