Original Post
When I was trying to track down a rather strange memory leak, I traced it to a static vector. I found that the problem could also be duplicated using a global variable as well, as follows: Why exactly is this an automatic memory leak? Shouldn't it's dynamic array be deleted when the destructor is called?
#include <vector>
vector<int> myVec(5);
int main()
{
return 0;
}