scaling of templates with alias argument

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon May 14 15:14:01 PDT 2007


"Stephen Waits" <steve at waits.net> wrote in message 
news:f2al0r$1rjp$1 at digitalmars.com...
> Frank Benoit wrote:
>> external-scope name of the argument. But each call or func makes a new
>> instance of this template function.
>
> The compiler should only instance each template once per type per 
> compilation unit.  The linker should be able to remove duplicates across 
> multiple compilation units.
>
> --Steve

Right.  It'd end up not being any more bloated than defining several 
overloads of the function for various types. 





More information about the Digitalmars-d mailing list