Commit e2013f1a authored by Ghislain MARY's avatar Ghislain MARY

Fix build with some GCC versions.

parent d4d88312
......@@ -51,12 +51,14 @@ private:
LINPHONE_END_NAMESPACE
// Add map key support.
template<>
struct std::hash<LinphonePrivate::ChatRoomId> {
std::size_t operator() (const LinphonePrivate::ChatRoomId &chatRoomId) const {
return hash<string>()(chatRoomId.getPeerAddress().asString()) ^
(hash<string>()(chatRoomId.getLocalAddress().asString()) << 1);
}
};
namespace std {
template<>
struct hash<LinphonePrivate::ChatRoomId> {
std::size_t operator() (const LinphonePrivate::ChatRoomId &chatRoomId) const {
return hash<string>()(chatRoomId.getPeerAddress().asString()) ^
(hash<string>()(chatRoomId.getLocalAddress().asString()) << 1);
}
};
}
#endif // ifndef _CHAT_ROOM_ID_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment