Error: template instance does not match template declaration
ref2401 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Mar 30 13:07:05 PDT 2016
On Tuesday, 29 March 2016 at 18:29:27 UTC, Ali Çehreli wrote:
> So, dict is a template value parameter of type T[string]. I
> don't think you can use an associative array as a template
> value parameter. (Can we?)
Found this in D language reference:
https://dlang.org/spec/template.html#template_value_parameter
Template value arguments can be integer values, floating point
values, nulls, string values,
array literals of template value arguments, associative array
literals of template value arguments...
So yes, associative arrays as template parameters are supposed to
work.
More information about the Digitalmars-d-learn
mailing list