Do not print invalid memory.

This commit is contained in:
Axel Naumann 2016-01-04 17:06:30 +01:00 committed by sftnight
parent a4a3ebbb41
commit 5c22ebb509

View File

@ -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