mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
unique var names in example
This commit is contained in:
parent
46a26976ba
commit
bcca1488e8
|
@ -13044,8 +13044,8 @@ Better performance, better compile-time checking, guaranteed compile-time evalua
|
|||
##### Example
|
||||
|
||||
double x = f(2); // possible run-time evaluation
|
||||
const double x = f(2); // possible run-time evaluation
|
||||
constexpr double y = f(2); // error unless f(2) can be evaluated at compile time
|
||||
const double y = f(2); // possible run-time evaluation
|
||||
constexpr double z = f(2); // error unless f(2) can be evaluated at compile time
|
||||
|
||||
##### Note
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user