Static if to compare two types are the exact same

Jonathan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 6 23:37:48 PDT 2015


>> static if (is(T == V))

Are static ifs always checked outside of runtime? Is it possible 
for a static if condition to be undeterminable outside of 
runtime, or would such a condition throw a compiler error?






More information about the Digitalmars-d-learn mailing list