mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
Fix build with some GCC versions.
This commit is contained in:
parent
d4d88312ae
commit
e2013f1aa0
1 changed files with 9 additions and 7 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue