I am really confused about a constexpr
concept, as I have read constexpr
is evaluated at compile time, so it is useful for performance optimization ver
Here are my 2 cents:
The constexpr
feature defines computation that happens during the compile time. Reasonable question:
Reasonable answer:
Because of that standard allows pretty limited set of features inside the constexpr
code. One may argue why exactly this set and not something more? Well, later on the standard may evolve and allow more.