Check if template param is null

Andrea Fontana nospam at example.com
Wed Jul 11 00:59:44 PDT 2012


Is there a (compile time) way to check if a template param is null?

static if ( is (T:int) ) ....
else static if ( is(T:long) ) ....
// how to check if T == null ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120711/7da707c5/attachment.html>


More information about the Digitalmars-d-learn mailing list