mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Workaround for MSVC std::function bug
This commit is contained in:
@@ -799,7 +799,7 @@ public:
|
|||||||
|
|
||||||
if (acq != mAcquiring.end ())
|
if (acq != mAcquiring.end ())
|
||||||
getApp().getJobQueue().addJob(jtTXN_DATA, "peerHasTxnData",
|
getApp().getJobQueue().addJob(jtTXN_DATA, "peerHasTxnData",
|
||||||
std::bind(&TransactionAcquire::peerHas, acq->second, peer));
|
std::bind(&TransactionAcquire::peerHasVoid, acq->second, peer));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,8 +67,18 @@ public:
|
|||||||
return mLastAction;
|
return mLastAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VFALCO TODO Rename this to addPeerToSet
|
||||||
|
//
|
||||||
bool peerHas (Peer::ref);
|
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 badPeer (Peer::ref);
|
||||||
|
|
||||||
void setTimer ();
|
void setTimer ();
|
||||||
|
|
||||||
int takePeerSetFrom (const PeerSet& s);
|
int takePeerSetFrom (const PeerSet& s);
|
||||||
|
|||||||
Reference in New Issue
Block a user