mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Revise according to GDRs suggestion in PR 463.
This commit is contained in:
@@ -2081,10 +2081,10 @@ Don't try to make all functions `constexpr`. Most computation is best done at ru
|
|||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
Any API that may eventually become configurable or customizable at runtime
|
Any API that may eventually depend on high-level runtime configuration or
|
||||||
should not be made `constexpr`. Such customization could not be evaluated by the
|
business logic should not be made `constexpr`. Such customization can not be
|
||||||
compiler, and any `constexpr` functions that depend upon that API will have to
|
evaluated by the compiler, and any `constexpr` functions that depend upon that
|
||||||
be refactored or drop `constexpr`.
|
API will have to be refactored or drop `constexpr`.
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user