January 17, 2014 Re: default args for templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 |
Copyright © 1999-2021 by the D Language Foundation