From ce16f9848cb8986f611f28f4d28cb2e5f344ac56 Mon Sep 17 00:00:00 2001 From: Georg Rudoy <0xd34df00d@gmail.com> Date: Tue, 1 Sep 2009 13:36:30 +0000 Subject: [PATCH] Fix build with MSVS (use const_iterator where non-const one is not needed). --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 21b341bce..7e083e99f 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -5907,7 +5907,7 @@ namespace libtorrent INVARIANT_CHECK; int ret = 0; - for (std::set::iterator i = m_connections.begin() + for (std::set::const_iterator i = m_connections.begin() , end(m_connections.end()); i != end; ++i) if ((*i)->is_seed()) ++ret; return ret;