diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 9d4e63489..3b1f32aa1 100644 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -136,7 +136,7 @@ namespace libtorrent void notify_extension_add_peer(tcp::endpoint const& ip, int src, int flags); #endif -#ifdef TORRENT_DEBUG +#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS bool has_peer(peer_connection* p) const { return m_connections.find(p) != m_connections.end(); } #endif