Capturing __FILE__ and __LINE in a variadic templated function
    Adam D. Ruppe via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sun Nov  1 14:49:26 PST 2015
    
    
  
Yeah, just make the other args normal runtime instead of template:
void show(T...)(string file = __FILE__, uint line = __LINE__, 
string fun = __FUNCTION__) {
   // same body
}
// same usage
    
    
More information about the Digitalmars-d-learn
mailing list