summaryrefslogtreecommitdiff
path: root/dns/powerdns/files/patch-pdns_logger_cc
blob: cc60d58b45f76be0dc429a1f5404af58c5cf7337 (plain) (blame)
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
--- pdns/logger.cc.orig	Fri Feb 11 12:49:28 2005
+++ pdns/logger.cc	Fri Feb 11 12:51:16 2005
@@ -131,6 +131,25 @@
   return *this;
 }
 
+Logger& Logger::operator<<(long i)
+{
+  ostringstream tmp;
+  tmp<<i;
+
+  *this<<tmp.str();
+
+  return *this;
+}
+
+Logger& Logger::operator<<(unsigned long i)
+{
+  ostringstream tmp;
+  tmp<<i;
+
+  *this<<tmp.str();
+
+  return *this;
+}
 
 Logger& Logger::operator<<(ostream & (&)(ostream &))
 {