Fix: ip::address::is_unspecified() is available only in boost versions above 1.47.0.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 18 Mar 2012 21:27:18 +0000 (18:27 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 18 Mar 2012 21:27:18 +0000 (18:27 -0300)
src/dns/hostaddress.cpp

index 099ccc3..7e94270 100644 (file)
@@ -20,6 +20,7 @@ on this file might be covered by the GNU General Public License.
 #include "dns/hostaddress.h"
 
 #include <boost/assert.hpp>
+#include <boost/version.hpp>
 
 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;
 }