Ambiguous indentation within unordered list

This commit is contained in:
Thibault Kruse 2015-09-26 19:54:22 +02:00
parent 1e49b7b7a3
commit 90b62edaf0

View File

@ -12362,18 +12362,20 @@ Aternatively, we will decide that no change is needed and delete the entry.
* What to do with leaks out of temporaries? : `p = (s1+s2).c_str();`
* pointer/iterator invalidation leading to dangling pointers
void bad()
{
int* p = new int[700];
int* q = &p[7];
delete p;
Example:
vector<int> v(700);
int* q2 = &v[7];
v.resize(900);
void bad()
{
int* p = new int[700];
int* q = &p[7];
delete p;
// ... use q and q2 ...
}
vector<int> v(700);
int* q2 = &v[7];
v.resize(900);
// ... use q and q2 ...
}
* LSP
* private inheritance vs/and membership