From: Guilherme Maciel Ferreira Date: Sun, 18 Mar 2012 21:27:18 +0000 (-0300) Subject: Fix: ip::address::is_unspecified() is available only in boost versions above 1.47.0. X-Git-Tag: v1.5~1^2 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=064f747783e54000cd3793f2a913dd9dfb9434c7;p=pingcheck Fix: ip::address::is_unspecified() is available only in boost versions above 1.47.0. --- diff --git a/src/dns/hostaddress.cpp b/src/dns/hostaddress.cpp index 099ccc3..7e94270 100644 --- a/src/dns/hostaddress.cpp +++ b/src/dns/hostaddress.cpp @@ -20,6 +20,7 @@ on this file might be covered by the GNU General Public License. #include "dns/hostaddress.h" #include +#include using namespace std; using boost::asio::ip::address; @@ -54,7 +55,9 @@ address HostAddress::get_ip() const void HostAddress::set_ip( const address &ip ) { +#if BOOST_VERSION >= 104700 BOOST_ASSERT( ip.is_unspecified() ); +#endif Ip = ip; }