Compare types with `static if` in template function.

vladde via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 29 11:54:01 PDT 2015


On Wednesday, 29 July 2015 at 18:14:11 UTC, Ali Çehreli wrote:
>         else if(is(typeof(c) == fg))
>         {
>             // slots[xy.y][xy.x].fg = C;
>         }

The error occurs when the commented line is run. The full code 
can be viewed at 
https://github.com/vladdeSV/clayers/blob/change-slot/source/clayers.d



More information about the Digitalmars-d-learn mailing list