diff options
Diffstat (limited to 'src/rpc/server.cpp')
| -rw-r--r-- | src/rpc/server.cpp | 9 |
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; } |