default args for templates

bearophile bearophileHUGS at lycos.com
Fri Jan 17 06:47:33 PST 2014


Manu:

> The context gives everything it needs.

I don't think so. If you pass one of those literals to a template 
by alias, you are passing the template name (the type 
constructor) or the instantiated template (the type)? Both are 
valid usages and I think the compiler can't choose by itself. So 
I think this is a bad idea.

Bye,
bearophile


More information about the Digitalmars-d mailing list