From 41406bfa1747a9c1038355a3ed4c5e455591afe8 Mon Sep 17 00:00:00 2001 From: John-Gee Date: Tue, 22 Dec 2020 06:25:23 -0800 Subject: Fix for Boost 1.74 --- src/validation.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 3ddf67717..415a3a9b4 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -44,6 +44,7 @@ #include #include +#include #include #include #include @@ -179,7 +180,9 @@ private: public: MemPoolConflictRemovalTracker(CTxMemPool &_pool) : pool(_pool) { - pool.NotifyEntryRemoved.connect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, this, _1, _2)); + pool.NotifyEntryRemoved.connect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, + this, boost::placeholders::_1, + boost::placeholders::_2)); } void NotifyEntryRemoved(CTransactionRef txRemoved, MemPoolRemovalReason reason) { @@ -189,7 +192,9 @@ public: } ~MemPoolConflictRemovalTracker() { - pool.NotifyEntryRemoved.disconnect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, this, _1, _2)); + pool.NotifyEntryRemoved.disconnect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, + this, boost::placeholders::_1, + boost::placeholders::_2)); for (const auto& tx : conflictedTxs) { GetMainSignals().SyncTransaction(*tx, NULL, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK); } -- cgit v1.2.3