diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -10,11 +10,13 @@ #include #include -#include - #include #include #include +#include +#include + +#include struct ValidationInterfaceConnections { boost::signals2::scoped_connection UpdatedBlockTip; @@ -92,9 +94,10 @@ void CMainSignals::RegisterWithMempoolSignals(CTxMemPool &pool) { g_connNotifyEntryRemoved.emplace( - &pool, pool.NotifyEntryRemoved.connect( - std::bind(&CMainSignals::MempoolEntryRemoved, this, - std::placeholders::_1, std::placeholders::_2))); + std::piecewise_construct, std::forward_as_tuple(&pool), + std::forward_as_tuple(pool.NotifyEntryRemoved.connect( + std::bind(&CMainSignals::MempoolEntryRemoved, this, + std::placeholders::_1, std::placeholders::_2)))); } void CMainSignals::UnregisterWithMempoolSignals(CTxMemPool &pool) {