template const to compile-time function

Carlos Santander csantander619 at gmail.com
Wed Sep 5 05:32:00 PDT 2007


Jari-Matti Mäkelä escribió:
> 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.

Nice tip. Thanks.

-- 
Carlos Santander Bernal


More information about the Digitalmars-d-learn mailing list