I have these three related class members:
vector<Frame*>* poolFrames;
vector<Frame*>*::iterator frameIterator;
vector<vector<Frame*>::iterator>* poolFrameIterators;
When I compile, gcc tells me
error: invalid use of ‘::’ error: expected ‘;’ before ‘frameIterator’
In reference to the middle line, where I define frameIterators. It goes away when I loose the pointer to the vector and make it a vector::iterator. However, I want them to be pointers. Is there a special way to define the data type that I want, or do I need to use vector::iterator and then dereference?