mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
build: fix boost 1.73 compatibility
This commit is contained in:
parent
77a008f714
commit
f35ced6d7f
@ -465,7 +465,7 @@ eof:
|
|||||||
bool run_default_console_handler_no_srv_param(t_server* ptsrv, t_handler handlr, std::function<std::string(void)> prompt, const std::string& usage = "")
|
bool run_default_console_handler_no_srv_param(t_server* ptsrv, t_handler handlr, std::function<std::string(void)> prompt, const std::string& usage = "")
|
||||||
{
|
{
|
||||||
async_console_handler console_handler;
|
async_console_handler console_handler;
|
||||||
return console_handler.run(ptsrv, boost::bind<bool>(no_srv_param_adapter<t_server, t_handler>, _1, _2, handlr), prompt, usage);
|
return console_handler.run(ptsrv, boost::bind<bool>(no_srv_param_adapter<t_server, t_handler>, boost::placeholders::_1, boost::placeholders::_2, handlr), prompt, usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class t_server, class t_handler>
|
template<class t_server, class t_handler>
|
||||||
@ -634,7 +634,7 @@ eof:
|
|||||||
|
|
||||||
bool run_handling(std::function<std::string(void)> prompt, const std::string& usage_string, std::function<void(void)> exit_handler = NULL)
|
bool run_handling(std::function<std::string(void)> prompt, const std::string& usage_string, std::function<void(void)> exit_handler = NULL)
|
||||||
{
|
{
|
||||||
return m_console_handler.run(boost::bind(&console_handlers_binder::process_command_str, this, _1), prompt, usage_string, exit_handler);
|
return m_console_handler.run(boost::bind(&console_handlers_binder::process_command_str, this, boost::placeholders::_1), prompt, usage_string, exit_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_prompt()
|
void print_prompt()
|
||||||
|
@ -294,20 +294,20 @@ namespace epee
|
|||||||
|
|
||||||
#define HANDLE_INVOKE2(command_id, func, type_name_in, typename_out) \
|
#define HANDLE_INVOKE2(command_id, func, type_name_in, typename_out) \
|
||||||
if(!is_notify && command_id == command) \
|
if(!is_notify && command_id == command) \
|
||||||
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, type_name_in, typename_out>(this, command, in_buff, buff_out, boost::bind(func, this, _1, _2, _3, _4), context);}
|
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, type_name_in, typename_out>(this, command, in_buff, buff_out, boost::bind(func, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4), context);}
|
||||||
|
|
||||||
#define HANDLE_INVOKE_T2(COMMAND, func) \
|
#define HANDLE_INVOKE_T2(COMMAND, func) \
|
||||||
if(!is_notify && COMMAND::ID == command) \
|
if(!is_notify && COMMAND::ID == command) \
|
||||||
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, typename COMMAND::request, typename COMMAND::response>(command, in_buff, buff_out, boost::bind(func, this, _1, _2, _3, _4), context);}
|
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, typename COMMAND::request, typename COMMAND::response>(command, in_buff, buff_out, boost::bind(func, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4), context);}
|
||||||
|
|
||||||
|
|
||||||
#define HANDLE_NOTIFY2(command_id, func, type_name_in) \
|
#define HANDLE_NOTIFY2(command_id, func, type_name_in) \
|
||||||
if(is_notify && command_id == command) \
|
if(is_notify && command_id == command) \
|
||||||
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, type_name_in>(this, command, in_buff, boost::bind(func, this, _1, _2, _3), context);}
|
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, type_name_in>(this, command, in_buff, boost::bind(func, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3), context);}
|
||||||
|
|
||||||
#define HANDLE_NOTIFY_T2(NOTIFY, func) \
|
#define HANDLE_NOTIFY_T2(NOTIFY, func) \
|
||||||
if(is_notify && NOTIFY::ID == command) \
|
if(is_notify && NOTIFY::ID == command) \
|
||||||
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, typename NOTIFY::request>(this, command, in_buff, boost::bind(func, this, _1, _2, _3), context);}
|
{handled=true;return epee::net_utils::buff_to_t_adapter<internal_owner_type_name, typename NOTIFY::request>(this, command, in_buff, boost::bind(func, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3), context);}
|
||||||
|
|
||||||
|
|
||||||
#define CHAIN_INVOKE_MAP2(func) \
|
#define CHAIN_INVOKE_MAP2(func) \
|
||||||
|
@ -135,8 +135,8 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
std::map< uint64_t, crypto::hash >::const_iterator highest =
|
std::map< uint64_t, crypto::hash >::const_iterator highest =
|
||||||
std::max_element( m_points.begin(), m_points.end(),
|
std::max_element( m_points.begin(), m_points.end(),
|
||||||
( boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, _1) <
|
( boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_1) <
|
||||||
boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, _2 ) ) );
|
boost::bind(&std::map< uint64_t, crypto::hash >::value_type::first, boost::placeholders::_2 ) ) );
|
||||||
return highest->first;
|
return highest->first;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -711,7 +711,7 @@ namespace trezor{
|
|||||||
// Start the asynchronous operation itself. The handle_receive function
|
// Start the asynchronous operation itself. The handle_receive function
|
||||||
// used as a callback will update the ec and length variables.
|
// used as a callback will update the ec and length variables.
|
||||||
m_socket->async_receive_from(boost::asio::buffer(buffer), m_endpoint,
|
m_socket->async_receive_from(boost::asio::buffer(buffer), m_endpoint,
|
||||||
boost::bind(&UdpTransport::handle_receive, _1, _2, &ec, &length));
|
boost::bind(&UdpTransport::handle_receive, boost::placeholders::_1, boost::placeholders::_2, &ec, &length));
|
||||||
|
|
||||||
// Block until the asynchronous operation has completed.
|
// Block until the asynchronous operation has completed.
|
||||||
do {
|
do {
|
||||||
|
@ -856,10 +856,10 @@ inline bool do_replay_file(const std::string& filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define REGISTER_CALLBACK(CB_NAME, CLBACK) \
|
#define REGISTER_CALLBACK(CB_NAME, CLBACK) \
|
||||||
register_callback(CB_NAME, boost::bind(&CLBACK, this, _1, _2, _3));
|
register_callback(CB_NAME, boost::bind(&CLBACK, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3));
|
||||||
|
|
||||||
#define REGISTER_CALLBACK_METHOD(CLASS, METHOD) \
|
#define REGISTER_CALLBACK_METHOD(CLASS, METHOD) \
|
||||||
register_callback(#METHOD, boost::bind(&CLASS::METHOD, this, _1, _2, _3));
|
register_callback(#METHOD, boost::bind(&CLASS::METHOD, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3));
|
||||||
|
|
||||||
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS) \
|
#define MAKE_GENESIS_BLOCK(VEC_EVENTS, BLK_NAME, MINER_ACC, TS) \
|
||||||
test_generator generator; \
|
test_generator generator; \
|
||||||
|
Loading…
Reference in New Issue
Block a user