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/packetSource.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/packetSource.cpp')
-rw-r--r-- | src/packetSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packetSource.cpp b/src/packetSource.cpp index 8357c64..711a206 100644 --- a/src/packetSource.cpp +++ b/src/packetSource.cpp @@ -62,7 +62,7 @@ void PacketSource::waitUntilReady() UDPPacketSource::UDPPacketSource(std::string localaddr, std::string port) { -// gResolver.resolveUdp(localaddr, port, boost::bind(&UDPPacketSource::onResolve, this, _1), boost::bind(&UDPPacketSource::onError, this, _1), gOpt.getResolvAddrType()); + gResolver.resolveUdp(localaddr, port, boost::bind(&UDPPacketSource::onResolve, this, _1), boost::bind(&UDPPacketSource::onError, this, _1), gOpt.getResolvAddrType()); } UDPPacketSource::~UDPPacketSource() @@ -76,7 +76,7 @@ UDPPacketSource::~UDPPacketSource() } } -void UDPPacketSource::onResolve(PacketSourceResolverIt& it) +void UDPPacketSource::onResolve(PacketSourceResolverIt it) { while(it != PacketSourceResolverIt()) { PacketSourceEndpoint e = *it; |