Fix build with MSVS (use const_iterator where non-const one is not needed).
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user