Pointer to template types?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 28 04:04:16 PDT 2014


Chris:

> So there is no way of filling an array with something like
>
> Person!(string) *pptr;
>
> foreach(person; people) {
>    buf ~= &person;
> }

So you want an array filled with instances of the same 
instantiation, sorry, I misunderstood your problem for a more 
complex one :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list