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