Replace boost::bind with BIND_TYPE where appropriate

This commit is contained in:
Vinnie Falco
2013-06-28 09:18:17 -07:00
parent 6cd0c27a0d
commit f1a4ea3c3f
14 changed files with 58 additions and 32 deletions

View File

@@ -255,9 +255,13 @@ void PeerImp::setIpPort (const std::string& strIP, int iPort)
void PeerImp::detach (const char* rsn, bool onIOStrand)
{
// VFALCO NOTE So essentially, detach() is really two different functions
// depending on the value of onIOStrand.
// TODO Clean this up.
//
if (!onIOStrand)
{
mIOStrand.post (boost::bind (&Peer::detach, shared_from_this (), rsn, true));
mIOStrand.post (BIND_TYPE (&Peer::detach, shared_from_this (), rsn, true));
return;
}
@@ -521,7 +525,7 @@ void PeerImp::sendPacket (const PackedMessage::pointer& packet, bool onStrand)
{
if (!onStrand)
{
mIOStrand.post (boost::bind (&Peer::sendPacket, shared_from_this (), packet, true));
mIOStrand.post (BIND_TYPE (&Peer::sendPacket, shared_from_this (), packet, true));
return;
}