Workaround for MSVC std::function bug

This commit is contained in:
Vinnie Falco
2014-01-15 22:08:46 -05:00
parent ab8d7a86ae
commit 2870c7f457
2 changed files with 11 additions and 1 deletions

View File

@@ -799,7 +799,7 @@ public:
if (acq != mAcquiring.end ())
getApp().getJobQueue().addJob(jtTXN_DATA, "peerHasTxnData",
std::bind(&TransactionAcquire::peerHas, acq->second, peer));
std::bind(&TransactionAcquire::peerHasVoid, acq->second, peer));
return true;
}

View File

@@ -67,8 +67,18 @@ public:
return mLastAction;
}
// VFALCO TODO Rename this to addPeerToSet
//
bool peerHas (Peer::ref);
// VFALCO Workaround for MSVC std::function which doesn't swallow return types.
void peerHasVoid (Peer::ref peer)
{
peerHas (peer);
}
void badPeer (Peer::ref);
void setTimer ();
int takePeerSetFrom (const PeerSet& s);