Do not print invalid memory.
This commit is contained in:
parent
a4a3ebbb41
commit
5c22ebb509
@ -17,8 +17,7 @@ public:
|
||||
};
|
||||
|
||||
std::vector<MyClass*> vect(3);
|
||||
for (auto it = vect.begin(), end = vect.end(); it != end; ++it)
|
||||
printf("%s\n", *it);
|
||||
for (el: vect) void* ptr = *it;
|
||||
|
||||
.q
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user