How to compare two types?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 31 16:57:55 PDT 2014


On Sunday, 31 August 2014 at 23:53:31 UTC, bearophile wrote:
> if (is(typeof(obj_one) == typeof(obj_two)))

You could, but since it is static info you might as well use 
static if.


More information about the Digitalmars-d-learn mailing list