Hi guys,
How do you instantiate a 'new' for STL vectors?
I have a vector of int's but if I try to exceed 1330 instances the application throws memory exceptions. So I want to pre-allocate the space with 'new'.
int frames = 1330; // 1330 max without 'new'
std::vector<int>* anim = new std::vector<int> anim(frames);
This doesn't compile, but hopefully gives an indication of what I want to do.
Any help would be greatly appreciated.
Thanks in advance :)