From 064f747783e54000cd3793f2a913dd9dfb9434c7 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Sun, 18 Mar 2012 18:27:18 -0300 Subject: [PATCH] Fix: ip::address::is_unspecified() is available only in boost versions above 1.47.0. --- src/dns/hostaddress.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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; } -- 1.7.1