I just play with the C ++ bootable boot kernel in visual studio 2010.
I got to the point that I have new and deleted records, and things like the work of dynamically distributed arrays. For example, I can use STL lists. I even sort them after I wrote the memcpy procedure. The problem is that I am using the type std :: vector. Simple vector construction sends the core to the ground.
Obviously, I miss some feature, but I looked through the STL and found it empty-handed. It does not work on push_back:
vector<int> v; v.push_back(1);
and disappears on the air.
Any guesses on what I am missing?
Edit yes it vector of int. Sorry for the confusion. Not only this, but not the constructor with which it fails, it is a call to push_back.
source share