diff options
author | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:30:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:31:22 +0200 |
commit | 16abad80ef9808f2f5bb8420d2afab2111eec502 (patch) | |
tree | 1b5c9763d134ffda7eb5ee5b892038a1de881b6d /src/syncServer.cpp | |
parent | std::auto_ptr is deprecated sinc C++0x use boost:scoped_ptr and boost::shared... (diff) |
fixed boost::bind problem with resolver on GCC-6
Diffstat (limited to 'src/syncServer.cpp')
-rw-r--r-- | src/syncServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |