4 ms·
Can it be forced to be computed at compile-time, by static_assert'ing on the result of the computation?
by euyyn 10y ago
Can it be forced to be computed at compile-time, by static_assert'ing on the result of the computation?
- gpderetta 10y agoYes, among other things. As long as a program can't tell the difference (as per the as-if rule), the compiler is free to delay tjee evaluation till runtime.