detect implicitly convertible typeid's?

bitwise bitwise.pvt at gmail.com
Sat Sep 23 15:52:17 UTC 2017


Is it possible to tell if two objects represented by TypeInfo's 
are convertible to each other?

Basically, is there a built in way to do this?

int x;
long y;
assert(typeid(x).isImplicitlyConvertibleTo(typeid(y));

    Thanks


More information about the Digitalmars-d-learn mailing list