I've got a problem:
I declared the map as
std::map<int, std::vector<SDL_Surface*> > surfaces;
The map is for layer 1, layer 2, etc. The vector inside contains the surfaces...
Now I have an iterator:
std::map<int, std::vector<SDL_Surface*> >::iterator curLayer = surfaces.begin();
Then I have another iteraror:
std::vector<SDL_Surface*>::iterator curItem;
Now this line generates an error:
curItem = (*curLayer).begin();
The error is a long sentence with the end 'does not contain a member named begin()'
Does anyone know how to solve this?
Greetz,
Vincent
I declared the map as
std::map<int, std::vector<SDL_Surface*> > surfaces;
The map is for layer 1, layer 2, etc. The vector inside contains the surfaces...
Now I have an iterator:
std::map<int, std::vector<SDL_Surface*> >::iterator curLayer = surfaces.begin();
Then I have another iteraror:
std::vector<SDL_Surface*>::iterator curItem;
Now this line generates an error:
curItem = (*curLayer).begin();
The error is a long sentence with the end 'does not contain a member named begin()'
Does anyone know how to solve this?
Greetz,
Vincent