Caching of Template Instantiations
    Nordlöw via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Oct 17 00:48:37 PDT 2015
    
    
  
Does DMD cache template instantiations?
That is, is it preferred to do, for instance, either
     static      if (isIntegral!T && isUnsigned!(T)) {}
     else static if (isIntegral!T && isSigned!(T)) {}
or
     enum integral = isIntegral!T;
     static      if (integral && isUnsigned!(T)) {}
     else static if (integral && isSigned!(T)) {}
    
    
More information about the Digitalmars-d-learn
mailing list