How to enforce compile time evaluation (and test if it was done at compile time)
sarn via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Feb 27 16:20:05 PST 2017
On Monday, 27 February 2017 at 19:26:06 UTC, Christian Köstlin
wrote:
> How can I make sure, that the calculations are done at compile
> time?
If you ever have doubts, you can always use something like this
to check:
assert (__ctfe);
More information about the Digitalmars-d-learn
mailing list