From 43e9f650035154299d257bb709af460ab7c8c502 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 4 Aug 2010 10:14:22 +0000 Subject: [PATCH] fixed compilation issue on ubuntu git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3340 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/tcponudp/rsudpstack.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/tcponudp/rsudpstack.h b/libretroshare/src/tcponudp/rsudpstack.h index 283b3f118..c6efad240 100644 --- a/libretroshare/src/tcponudp/rsudpstack.h +++ b/libretroshare/src/tcponudp/rsudpstack.h @@ -60,7 +60,9 @@ class rsUdpStack: public UdpStack, public pqiNetListener /* from pqiNetListener */ virtual bool resetListener(struct sockaddr_in &local) { - std::cerr << "rsUdpStack::resetListener(" << local << ")"; + // The const_cast below is not so nice but without it, the compiler can't + // find the correct operator<<(). No idea why! + std::cerr << "rsUdpStack::resetListener(" << const_cast(local) << ")"; std::cerr << std::endl; return resetAddress(local); }