mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Unnecessary ';'
This commit is contained in:
@@ -2673,7 +2673,6 @@ After the return from a function its local objects no longer exist:
|
|||||||
int* p = f();
|
int* p = f();
|
||||||
int z = *p; // read from abandoned stack frame (bad)
|
int z = *p; // read from abandoned stack frame (bad)
|
||||||
g(p); // pass pointer to abandoned stack frame to function (bad)
|
g(p); // pass pointer to abandoned stack frame to function (bad)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Here on one popular implementation I got the output:
|
Here on one popular implementation I got the output:
|
||||||
@@ -9991,7 +9990,7 @@ Specifying semantics is a powerful design tool.
|
|||||||
{a - b} -> T;
|
{a - b} -> T;
|
||||||
{a * b} -> T;
|
{a * b} -> T;
|
||||||
{a / b} -> T;
|
{a / b} -> T;
|
||||||
};
|
}
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user