Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
e2013f1a
Commit
e2013f1a
authored
Nov 17, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build with some GCC versions.
parent
d4d88312
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
chat-room-id.h
src/chat/chat-room/chat-room-id.h
+9
-7
No files found.
src/chat/chat-room/chat-room-id.h
View file @
e2013f1a
...
...
@@ -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_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment