mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Workaround for MSVC std::function bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user