argument list for class template "std::iterator" is missing
I get this error with this occasion:
for(std::iterator it = deque.begin(); it != deque.end(); it++)
So i had an idea of specifying in template manner like this:
for(std::iterator<sf::RectangleShape> it = deque.begin(); it != deque.end(); it++)
But then i get different error:
expected a declaration
I am kind of confusing on what is going here. All i need is the iterator because that way i can get to the last element of std::deque
and set it to a different rectangle color.
Thanks in advance.