From 16abad80ef9808f2f5bb8420d2afab2111eec502 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 3 Jul 2016 01:30:11 +0200 Subject: fixed boost::bind problem with resolver on GCC-6 --- src/syncServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syncServer.cpp') diff --git a/src/syncServer.cpp b/src/syncServer.cpp index 0c2b2b8..1e6e352 100644 --- a/src/syncServer.cpp +++ b/src/syncServer.cpp @@ -53,7 +53,7 @@ SyncServer::SyncServer(std::string localaddr, std::string port, ConnectCallback onConnect) : onConnect_(onConnect) { -// gResolver.resolveTcp(localaddr, port, boost::bind(&SyncServer::onResolve, this, _1), boost::bind(&SyncServer::onResolvError, this, _1)); + gResolver.resolveTcp(localaddr, port, boost::bind(&SyncServer::onResolve, this, _1), boost::bind(&SyncServer::onResolvError, this, _1)); } SyncServer::~SyncServer() @@ -65,7 +65,7 @@ SyncServer::~SyncServer() } } -void SyncServer::onResolve(SyncTcpConnection::proto::resolver::iterator& it) +void SyncServer::onResolve(SyncTcpConnection::proto::resolver::iterator it) { while(it != SyncTcpConnection::proto::resolver::iterator()) { SyncTcpConnection::proto::endpoint e = *it; -- cgit v1.2.3