Array of templated classes or structs

Dandyvica via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 24 08:57:07 PDT 2015


Hi guys,

Apart from deriving from the same class and declaring an array of 
that
root class, is there a way to create an array of templates?

This seems not possible since template are compile-time 
generated, but just to be sure. For example, it seems logical to 
get an array of complex numbers but Complex needs to be declared 
with a type.

Thanks for any hint.




More information about the Digitalmars-d-learn mailing list