mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
unique var names in example
This commit is contained in:
@@ -13044,8 +13044,8 @@ Better performance, better compile-time checking, guaranteed compile-time evalua
|
|||||||
##### Example
|
##### Example
|
||||||
|
|
||||||
double x = f(2); // possible run-time evaluation
|
double x = f(2); // possible run-time evaluation
|
||||||
const double x = f(2); // possible run-time evaluation
|
const double y = f(2); // possible run-time evaluation
|
||||||
constexpr double y = f(2); // error unless f(2) can be evaluated at compile time
|
constexpr double z = f(2); // error unless f(2) can be evaluated at compile time
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user