|
|
|
@ -2080,6 +2080,13 @@ This is usually a very good thing.
|
|
|
|
|
|
|
|
|
|
|
|
Don't try to make all functions `constexpr`. Most computation is best done at run time.
|
|
|
|
Don't try to make all functions `constexpr`. Most computation is best done at run time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### Note
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Any API that may eventually depend on high-level runtime configuration or
|
|
|
|
|
|
|
|
business logic should not be made `constexpr`. Such customization can not be
|
|
|
|
|
|
|
|
evaluated by the compiler, and any `constexpr` functions that depend upon that
|
|
|
|
|
|
|
|
API will have to be refactored or drop `constexpr`.
|
|
|
|
|
|
|
|
|
|
|
|
##### Enforcement
|
|
|
|
##### Enforcement
|
|
|
|
|
|
|
|
|
|
|
|
Impossible and unnecessary.
|
|
|
|
Impossible and unnecessary.
|
|
|
|
|