template const to compile-time function

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Wed Sep 5 01:20:59 PDT 2007


Carlos Santander wrote:

> I was thinking about code-generation bloat, but I guess I'd have to
> measure that myself.

If you only use the wrapper function in CTFE, try moving it to a separate
module and not linking it, just importing. That way no unnecessary code is
generated to the final executable or object files.


More information about the Digitalmars-d-learn mailing list