diff --git a/include/libtorrent/ip_filter.hpp b/include/libtorrent/ip_filter.hpp index e89c3578a..8b1793c3a 100644 --- a/include/libtorrent/ip_filter.hpp +++ b/include/libtorrent/ip_filter.hpp @@ -133,7 +133,7 @@ namespace detail template<> inline boost::uint16_t max_addr() - { return std::numeric_limits::max(); } + { return (std::numeric_limits::max)(); } // this is the generic implementation of // a filter for a specific address type.