Re: template instance does not match template declaration

2017-01-15 Thread Fabrice Marie via Digitalmars-d-learn
On Sunday, 8 January 2017 at 05:45:52 UTC, Meta wrote: 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

template instance does not match template declaration

2017-01-07 Thread Fabrice Marie via Digitalmars-d-learn
Hi, On my first attempt to create a templated class, I'm hitting an issue that I can't seem to resolve. I've dustmite'd the code down to: class Cache(O, K, F) { } void main() { class BasicObject { } BasicObject lookupBasicObject() { }