Unqual doesn't remove qualifiers from pointers

John Chapman johnch_atms at hotmail.com
Tue Nov 20 17:44:02 UTC 2018


Is std.traits.Unqual supposed to work on pointers?

const int x;
static assert(Unqual!(typeof(&x)) == int*);

Compiler says: static assert:  `is(const(int)* == int*)` is false

If it's a bug I'll report it.


More information about the Digitalmars-d mailing list