default args for templates
Jacob Carlborg
doob at me.com
Fri Jan 17 07:24:48 PST 2014
On 2014-01-17 15:47, bearophile wrote:
> 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.
Template name, because you can override that with !() to mean template
instantiation.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list