Fix build with MSVS (use const_iterator where non-const one is not needed).

This commit is contained in:
Georg Rudoy 2009-09-01 13:36:30 +00:00
parent f7ebefb285
commit ce16f9848c
1 changed files with 1 additions and 1 deletions

View File

@ -5907,7 +5907,7 @@ namespace libtorrent
INVARIANT_CHECK;
int ret = 0;
for (std::set<peer_connection*>::iterator i = m_connections.begin()
for (std::set<peer_connection*>::const_iterator i = m_connections.begin()
, end(m_connections.end()); i != end; ++i)
if ((*i)->is_seed()) ++ret;
return ret;