CTFE calling a template: Error: expression ... is not a valid template value argument

Jonathan M Davis jmdavisProg at gmx.com
Thu Sep 20 15:58:49 PDT 2012


On Friday, September 21, 2012 00:29:48 Jonathan M Davis wrote:
> As far as a function's behavior goes,
> it's identical regardless of whether it's run at compile time or runtime
> (save that __ctfe is true at compile time but not runtime).

Actually, that's not quite true (though it's very close). There are a couple 
of quirks such as the precision of floating point arithmetic differing and the 
exact value of NaN potentially being different (since there are multiple NaN 
values), but it's almost entirely true.

- Jonathan M Davis


More information about the Digitalmars-d mailing list