aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorJohn-Gee <[email protected]>2020-12-22 06:25:23 -0800
committerJohn-Gee <[email protected]>2021-02-02 03:54:57 -0800
commit41406bfa1747a9c1038355a3ed4c5e455591afe8 (patch)
tree67f6160f7cfa6232b5cc85269842f491c195a7c1 /src/rpc/server.cpp
parentMerge pull request #1669 from carsenk/master (diff)
downloaddiscoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.tar.xz
discoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.zip
Fix for Boost 1.74
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index 6ab5f834f..303806b99 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -15,7 +15,7 @@
#include <univalue.h>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>
@@ -58,12 +58,12 @@ void RPCServer::OnStopped(boost::function<void ()> slot)
void RPCServer::OnPreCommand(boost::function<void (const CRPCCommand&)> slot)
{
- g_rpcSignals.PreCommand.connect(boost::bind(slot, _1));
+ g_rpcSignals.PreCommand.connect(boost::bind(slot, boost::placeholders::_1));
}
void RPCServer::OnPostCommand(boost::function<void (const CRPCCommand&)> slot)
{
- g_rpcSignals.PostCommand.connect(boost::bind(slot, _1));
+ g_rpcSignals.PostCommand.connect(boost::bind(slot, boost::placeholders::_1));
}
void RPCTypeCheck(const UniValue& params,
@@ -516,7 +516,8 @@ std::vector<std::string> CRPCTable::listCommands() const
std::transform( mapCommands.begin(), mapCommands.end(),
std::back_inserter(commandList),
- boost::bind(&commandMap::value_type::first,_1) );
+ boost::bind(&commandMap::value_type::first,
+ boost::placeholders::_1) );
return commandList;
}