blob: f41601d56375e656229384c3e266628bea623484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From eaa17d2ad90de2024fc3a7a59575597d1dc0b171 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Sat, 21 Jan 2017 18:01:14 +0100
Subject: [PATCH] Fix compilation
---
src/NetworkMessage.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/NetworkMessage.cpp b/src/NetworkMessage.cpp
index 9178e74..0c3163b 100644
--- a/src/NetworkMessage.cpp
+++ b/src/NetworkMessage.cpp
@@ -109,6 +109,11 @@ bool operator == (const ServerInfo& lval, const ServerInfo& rval)
std::ostream& operator<<(std::ostream& stream, const ServerInfo& val)
{
- return stream << val.name << " (" << val.hostname << ":" << val.port << ")";
+ return stream
+ << std::string(val.name)
+ << std::string(" (")
+ << std::string(val.hostname)
+ << std::string(":") << std::to_string(val.port)
+ << std::string(")");
}
--
2.11.0
|