fixed msvc build

This commit is contained in:
Arvid Norberg 2011-04-09 21:04:02 +00:00
parent e5720eafd8
commit 087e4a3fdc
1 changed files with 5 additions and 3 deletions

View File

@ -4890,12 +4890,14 @@ namespace libtorrent
// this asserts that we don't have duplicates in the policy's peer list // this asserts that we don't have duplicates in the policy's peer list
peer_iterator i_ = std::find_if(m_connections.begin(), m_connections.end() peer_iterator i_ = std::find_if(m_connections.begin(), m_connections.end()
, boost::bind(&peer_connection::remote, _1) == peerinfo->ip()); , boost::bind(&peer_connection::remote, _1) == peerinfo->ip());
#if TORRENT_USE_I2P
TORRENT_ASSERT(i_ == m_connections.end() TORRENT_ASSERT(i_ == m_connections.end()
|| (*i_)->type() != peer_connection::bittorrent_connection || (*i_)->type() != peer_connection::bittorrent_connection
#if TORRENT_USE_I2P || peerinfo->is_i2p_addr);
|| peerinfo->is_i2p_addr #else
TORRENT_ASSERT(i_ == m_connections.end()
|| (*i_)->type() != peer_connection::bittorrent_connection);
#endif #endif
);
} }
#endif #endif