mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +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 z = *p; // read from abandoned stack frame (bad)
|
||||
g(p); // pass pointer to abandoned stack frame to function (bad)
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
##### Note
|
||||
|
||||
|
||||
Reference in New Issue
Block a user