Template and alloca?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed May 26 07:34:06 UTC 2021


On Tuesday, 25 May 2021 at 17:55:17 UTC, Ola Fosheim Grostad 
wrote:
> Is it possible to use a template to write a "function" that 
> provides initialized stack allocated memory (alloca)? Maybe I 
> would have to use mixin?

Nevermind, I've realized that I only need a way to force a 
function to be inlined with 100% certainty. Then I can return a 
structure holding alloca-allocated memory.



More information about the Digitalmars-d-learn mailing list