Loading system/gd/common/address.h +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ namespace std { template <> struct hash<bluetooth::common::Address> { std::size_t operator()(const bluetooth::common::Address& val) const { static_assert(sizeof(uint64_t) >= bluetooth::common::Address::kLength); uint64_t int_addr = 0; memcpy(reinterpret_cast<uint8_t*>(&int_addr), val.address, bluetooth::common::Address::kLength); return std::hash<uint64_t>{}(int_addr); Loading Loading
system/gd/common/address.h +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ namespace std { template <> struct hash<bluetooth::common::Address> { std::size_t operator()(const bluetooth::common::Address& val) const { static_assert(sizeof(uint64_t) >= bluetooth::common::Address::kLength); uint64_t int_addr = 0; memcpy(reinterpret_cast<uint8_t*>(&int_addr), val.address, bluetooth::common::Address::kLength); return std::hash<uint64_t>{}(int_addr); Loading