From 1c8be43af642dd60763a0d34171685aa10ab1e04 Mon Sep 17 00:00:00 2001 From: vitalyster <vitalyster@gmail.com> Date: Wed, 11 Jan 2012 20:41:00 +0400 Subject: Fixed compilation with msvc and boost-1.48 License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php diff --git a/Swiften/Network/HostAddress.cpp b/Swiften/Network/HostAddress.cpp index 7ba2a7f..f00581f 100644 --- a/Swiften/Network/HostAddress.cpp +++ b/Swiften/Network/HostAddress.cpp @@ -31,14 +31,14 @@ HostAddress::HostAddress(const std::string& address) { HostAddress::HostAddress(const unsigned char* address, int length) { assert(length == 4 || length == 16); if (length == 4) { - boost::array<unsigned char, 4> data; + boost::asio::ip::address_v4::bytes_type data; for (int i = 0; i < length; ++i) { data[i] = address[i]; } address_ = boost::asio::ip::address(boost::asio::ip::address_v4(data)); } else { - boost::array<unsigned char, 16> data; + boost::asio::ip::address_v6::bytes_type data; for (int i = 0; i < length; ++i) { data[i] = address[i]; } -- cgit v0.10.2-6-g49f6