Question about template instantiation scope

BCS ao at pathlink.com
Sat Mar 22 19:44:03 PDT 2008


Reply to Edward,

> From this I assume that a template which refers to some type or
> object which is not in the module of the template declaration must
> import the module where the type or object is defined in order to be
> instantiated at all.
> 
> Is this correct ?
> 

Yes.

The use of template mixin allows the reverse behavior. But that's for later





More information about the Digitalmars-d mailing list