fixed compilation issue on ubuntu

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3340 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-08-04 10:14:22 +00:00
parent a999c317ff
commit 43e9f65003

View File

@ -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<const struct sockaddr_in &>(local) << ")";
std::cerr << std::endl;
return resetAddress(local);
}