Pointer to template types?
Chris via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Apr 28 03:18:07 PDT 2014
I need an array that contains pointers to types created via
template. To stick to my usual example:
Person!(string)
How can I make an array with pointers to concrete "instances" of
Person!(string)?
Something like this only with pointers, i.e. buf holds pointers
to concrete Person!(string)s:
Appender!(Person!(string)[]) buf = appender!(Person!(string)[]);
Thanks in advance.
More information about the Digitalmars-d-learn
mailing list