The code is perfectly fine, since the iterator is not used anymore after
the erase. You can see it by looking at the loop condition:
for (std::map<const TCPBuddy*, boost::shared_ptr<Session>
>::iterator it = m_clients.begin(); it != m_clients.end(); it = next)
{
next = it;
next++;
[...]
}
--
TCPAccountHandler.cpp: bad erase
https://bugs.launchpad.net/bugs/479947
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs