3 ms·
constexpr was originally intended for "things that can be computed at compile time". But for something to be computable at compile-time, it would have to also b
by kstenerud 2y ago
constexpr was originally intended for "things that can be computed at compile time". But for something to be computable at compile-time, it would have to also be immutable.
- keybored 2y agoI can imagine a for loop with `i` which computes something over a static value where `i` isn’t immutable but is needed to compute the “constexpr” value.