Compare types with `static if` in template function.

vladde via Digitalmars-d-learn digitalmars-d-learn at
Wed Jul 29 11:08:22 PDT 2015

On Wednesday, 29 July 2015 at 18:04:48 UTC, vladde wrote:
> Apparently, if I only check for a character the code compiles 
> without the need of static if.
> if(is(typeof(c) == dchar) || is(typeof(c) == char)){ 
> slots[xy.y][xy.x].character = c; } //Compiles and works as 
> expected

And changing all if statements to static if still does not 

More information about the Digitalmars-d-learn mailing list