30 #include <IPvXAddress.h>
33 #if defined(HAVE_GCC_TR1) || defined(HAVE_MSVC_TR1)
34 namespace std {
namespace tr1 {
42 template<>
struct hash<IPvXAddress> : std::unary_function<IPvXAddress, std::size_t>
50 std::size_t operator()(
const IPvXAddress& addr)
const
53 return ((
bswap_32(addr.get6().words()[0])) ^
58 return bswap_32(addr.get4().getInt());
67 template<>
struct hash<
TransportAddress> : std::unary_function<TransportAddress, std::size_t>
77 if (addr.
getIp().isIPv6()) {
91 #if defined(HAVE_GCC_TR1) || defined(HAVE_MSVC_TR1)