Hello, I have a little problem with C++. Im trying to make a connections list, I have used the list in namespace std, or "<list>" if you like. Currently, I can add the connection fine. When it comes to removing the connection I have an issue. The issue being, If I use an iterator to go though the connections list(To find the one to remove) C++ will throw a type of exception.
It says "list iterator not incrementable", This is obivous, As my List is a list of structs.
That code may be utter crap, but I have to start somewhere. If you know of a way around this, or a fix. Help me please!

Edit: I shall also add, All the tutorials i found on lists. They used int. Basically that CAN be iterated. So they didnt help.
It says "list iterator not incrementable", This is obivous, As my List is a list of structs.
[SIZE=2][COLOR=#0000ff]struct[/COLOR][/SIZE][SIZE=2] Conn[/SIZE]
[SIZE=2]{ [/SIZE]
[SIZE=2][COLOR=#0000ff] char[/COLOR][/SIZE][SIZE=2] username[24];[/SIZE]
[SIZE=2][COLOR=#0000ff] char[/COLOR][/SIZE][SIZE=2] playername[24];[/SIZE]
[SIZE=2] byte UCID;[/SIZE]
[SIZE=2]};[/SIZE]
[SIZE=2]std::list<Conn> Connections;[/SIZE]
That code may be utter crap, but I have to start somewhere. If you know of a way around this, or a fix. Help me please!


Edit: I shall also add, All the tutorials i found on lists. They used int. Basically that CAN be iterated. So they didnt help.