Capturing caller's file/line number in variadic template functions

Adam D. Ruppe destructionator at gmail.com
Fri Mar 16 11:35:27 PDT 2012


On Friday, 16 March 2012 at 18:31:58 UTC, Kevin Cox wrote:
> But then you have to write it each time.

Nah, it just works, at least for the implicit calls:

checkConsistency(1, "2", 3); // calls checkConsistenct!(__FILE__, 
__LINE__, int, string, int)(1, "2", 3);


More information about the Digitalmars-d-learn mailing list