new should lower to a template function call

Adam D. Ruppe destructionator at gmail.com
Thu Jul 23 19:57:25 UTC 2020


On Thursday, 23 July 2020 at 18:51:33 UTC, Stefan Koch wrote:
> In the _worst_ case this can almost double the number of 
> template instances.
> I.E. when the new is inside a template itself.

There should be only one new instance per type, and it should be 
trivially inlined....


More information about the Digitalmars-d mailing list