fix build with std::tr1::array instead of boost::array

This commit is contained in:
Arvid Norberg
2011-08-07 23:40:39 +00:00
parent 587de62205
commit bf2e4df2b2
3 changed files with 8 additions and 8 deletions

View File

@@ -508,10 +508,10 @@ namespace libtorrent
if (ip_ent)
{
char const* p = ip_ent->string_ptr();
if (ip_ent->string_length() == address_v4::bytes_type::static_size)
if (ip_ent->string_length() == address_v4::bytes_type().size())
external_ip = detail::read_v4_address(p);
#if TORRENT_USE_IPV6
else if (ip_ent->string_length() == address_v6::bytes_type::static_size)
else if (ip_ent->string_length() == address_v6::bytes_type().size())
external_ip = detail::read_v6_address(p);
#endif
}