template instance does not match template declaration
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 7 21:45:52 PST 2017
On Sunday, 8 January 2017 at 03:27:26 UTC, Fabrice Marie wrote:
> void main()
> {
> ....
> Cache!(BasicObject, string, lookupBasicObject);
> }
In addition to what Nicholas Wilson said, what you're doing here
is the equivalent of writing `int;`. It doesn't make any sense as
Cache!(...) is a type, and you are declaring a variable of that
type... except you're not providing a variable name so the syntax
is wrong. After you've fixed the other problem change it to this:
Cache!(BasicObject, string, lookupBasicObject) c;
More information about the Digitalmars-d-learn
mailing list