|
|
|
|
|
by bilboa
3095 days ago
|
|
Apparently constexpr is like "inline". Just as the inline keyword doesn't actually guarantee that the compiler will inline a function, so constexpr doesn't require the compiler to precompute something, but rather just gives a hint to the compiler that you'd like it to if it can. |
|
inline means you CAN define a function in multiple translation units without violating ODR
no guarantees in the other direction