Trouble initializing a templated class
quakkels via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 5 10:17:01 PDT 2014
> try SomeClass (T): BaseClass
Not sure which line you want me to change. I don't want SomeClass
to inherit from BaseClass. Rather, I want T to be restricted to
classes that inherit from BaseClass.
When I change `class SomeClass(T : BaseClass)` to `class
SomeClass(T) : BaseClass` I still get the "class
templateExp.SomeClass(T) is used as a type" error.
More information about the Digitalmars-d-learn
mailing list