mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Unnecessary ';'
This commit is contained in:
parent
2a907f088d
commit
ad2717f7fa
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user