Fix compilation error: '_1' was not declared in this scope

Change-Id: I0f1f2df817a65f7d5b72c5280451346a0a011d47
This commit is contained in:
Vadim Yanitskiy 2021-05-03 19:00:43 +02:00
parent 6e1473426d
commit a11692085e
36 changed files with 38 additions and 39 deletions

View File

@ -28,7 +28,6 @@
#include <boost/function.hpp>
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <pmt/pmt.h>
namespace gr {

View File

@ -70,7 +70,7 @@ namespace gr {
{
//setup input/output ports
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&control_channels_decoder_impl::decode, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&control_channels_decoder_impl::decode, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("msgs"));
}

View File

@ -92,7 +92,7 @@ namespace gr {
{
//setup input/output ports
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_f_decoder_impl::decode, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_f_decoder_impl::decode, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("msgs"));
message_port_register_out(pmt::mp("voice"));

View File

@ -81,7 +81,7 @@ namespace gr {
{
//setup input/output ports
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_h_decoder_impl::decode, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_h_decoder_impl::decode, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("msgs"));
message_port_register_out(pmt::mp("voice"));

View File

@ -61,7 +61,7 @@ namespace gr {
validate_k_c();
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&decryption_impl::decrypt, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&decryption_impl::decrypt, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("bursts"));
}

View File

@ -58,7 +58,7 @@ namespace gr {
// }
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_f_chans_demapper_impl::filter_tch_chans, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_f_chans_demapper_impl::filter_tch_chans, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("tch_bursts"));
message_port_register_out(pmt::mp("acch_bursts"));
}

View File

@ -57,7 +57,7 @@ tch_h_chans_demapper_impl::tch_h_chans_demapper_impl(unsigned int timeslot_nr, u
//std::cout << "d_tch_type is " << d_tch_type << ", tch_h_channel is " << tch_h_channel << std::endl;
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_h_chans_demapper_impl::filter_tch_chans, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&tch_h_chans_demapper_impl::filter_tch_chans, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("tch_bursts"));
message_port_register_out(pmt::mp("acch_bursts"));
}

View File

@ -75,7 +75,7 @@ namespace gr {
std::copy(uplink_subslots.begin(), uplink_subslots.end(), d_uplink_subslots.begin());
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&universal_ctrl_chans_demapper_impl::filter_ctrl_chans, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&universal_ctrl_chans_demapper_impl::filter_ctrl_chans, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("bursts"));
}

View File

@ -55,7 +55,7 @@ namespace gr {
message_port_register_in(pmt::mp("in"));
message_port_register_out(pmt::mp("out"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_fnr_filter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_fnr_filter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -54,7 +54,7 @@ namespace gr {
message_port_register_in(pmt::mp("in"));
message_port_register_out(pmt::mp("out"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sdcch_subslot_filter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sdcch_subslot_filter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -63,7 +63,7 @@ namespace gr {
message_port_register_out(pmt::mp("out7"));
}
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sdcch_subslot_splitter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sdcch_subslot_splitter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -54,7 +54,7 @@ namespace gr {
message_port_register_in(pmt::mp("in"));
message_port_register_out(pmt::mp("out"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_timeslot_filter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_timeslot_filter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -60,7 +60,7 @@ namespace gr {
message_port_register_out(pmt::mp("out6"));
message_port_register_out(pmt::mp("out7"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_timeslot_splitter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_timeslot_splitter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -55,7 +55,7 @@ namespace gr {
message_port_register_in(pmt::mp("bursts_in"));
message_port_register_out(pmt::mp("bursts_out"));
set_msg_handler(pmt::mp("bursts_in"), boost::bind(&burst_type_filter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("bursts_in"), boost::bind(&burst_type_filter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -66,7 +66,7 @@ namespace gr {
message_port_register_in(pmt::mp("in"));
message_port_register_out(pmt::mp("out"));
set_msg_handler(pmt::mp("in"), boost::bind(&dummy_burst_filter_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&dummy_burst_filter_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -50,7 +50,7 @@ namespace gr {
message_port_register_in(pmt::mp("in"));
message_port_register_out(pmt::mp("uplink"));
message_port_register_out(pmt::mp("downlink"));
set_msg_handler(pmt::mp("in"), boost::bind(&uplink_downlink_splitter_impl::process_msg, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&uplink_downlink_splitter_impl::process_msg, this, boost::placeholders::_1));
}
void uplink_downlink_splitter_impl::process_msg(pmt::pmt_t msg)

View File

@ -48,7 +48,7 @@ namespace gr {
d_output_file(filename.c_str(), std::ofstream::binary)
{
message_port_register_in(pmt::mp("in"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_file_sink_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_file_sink_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -52,7 +52,7 @@ namespace gr {
// Bind a port handler
set_msg_handler(pmt::mp("bursts_in"),
boost::bind(&burst_to_fn_time_impl::handle_burst, this, _1));
boost::bind(&burst_to_fn_time_impl::handle_burst, this, boost::placeholders::_1));
}
/*

View File

@ -155,7 +155,7 @@ namespace gr {
d_ignore_dummy_bursts = ignore_dummy_bursts;
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&bursts_printer_impl::bursts_print, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&bursts_printer_impl::bursts_print, this, boost::placeholders::_1));
}
/*

View File

@ -172,7 +172,7 @@ namespace gr {
gr::io_signature::make(0, 0, 0))
{
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&collect_system_info_impl::process_messages, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&collect_system_info_impl::process_messages, this, boost::placeholders::_1));
}
/*

View File

@ -70,7 +70,7 @@ namespace gr {
gr::io_signature::make(0, 0, 0))
{
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_assignment_cmd_impl::process_messages, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_assignment_cmd_impl::process_messages, this, boost::placeholders::_1));
}
/*

View File

@ -83,7 +83,7 @@ namespace gr {
gr::io_signature::make(0, 0, 0))
{
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_cmc_impl::process_messages, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_cmc_impl::process_messages, this, boost::placeholders::_1));
}
/*

View File

@ -332,7 +332,7 @@ namespace gr {
d_ignore_gprs = ignore_gprs;
d_unique_references = unique_references;
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_immediate_assignment_impl::process_message, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_immediate_assignment_impl::process_message, this, boost::placeholders::_1));
}
/*

View File

@ -304,9 +304,9 @@ namespace gr {
after_reset(false)
{
message_port_register_in(pmt::mp("bursts"));
set_msg_handler(pmt::mp("bursts"), boost::bind(&extract_system_info_impl::process_bursts, this, _1));
set_msg_handler(pmt::mp("bursts"), boost::bind(&extract_system_info_impl::process_bursts, this, boost::placeholders::_1));
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_system_info_impl::process_sysinfo, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&extract_system_info_impl::process_sysinfo, this, boost::placeholders::_1));
}
/*

View File

@ -48,7 +48,7 @@ namespace gr {
d_output_file(filename.c_str(), std::ofstream::binary)
{
message_port_register_in(pmt::mp("in"));
set_msg_handler(pmt::mp("in"), boost::bind(&message_file_sink_impl::process_message, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&message_file_sink_impl::process_message, this, boost::placeholders::_1));
}
/*

View File

@ -108,7 +108,7 @@ namespace gr {
d_prepend_frame_count = prepend_frame_count;
d_print_gsmtap_header = print_gsmtap_header;
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&message_printer_impl::message_print, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&message_printer_impl::message_print, this, boost::placeholders::_1));
}
/*

View File

@ -57,7 +57,7 @@ namespace gr {
gr::io_signature::make(1, 1, sizeof(gr_complex)))
{
message_port_register_in(pmt::mp("msg"));
set_msg_handler(pmt::mp("msg"), boost::bind(&msg_to_tag_impl::queue_msg, this, _1));
set_msg_handler(pmt::mp("msg"), boost::bind(&msg_to_tag_impl::queue_msg, this, boost::placeholders::_1));
}
/*

View File

@ -217,7 +217,7 @@ tmsi_dumper_impl::tmsi_dumper_impl()
{
dump_file.open("tmsicount.txt", std::ios_base::app);
message_port_register_in(pmt::mp("msgs"));
set_msg_handler(pmt::mp("msgs"), boost::bind(&tmsi_dumper_impl::dump_tmsi, this, _1));
set_msg_handler(pmt::mp("msgs"), boost::bind(&tmsi_dumper_impl::dump_tmsi, this, boost::placeholders::_1));
}
/*

View File

@ -51,7 +51,7 @@ namespace gr {
d_bursts(pmt::PMT_NIL)
{
message_port_register_in(pmt::mp("in"));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sink_impl::process_burst, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sink_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -48,7 +48,7 @@ namespace gr {
gr::io_signature::make(0, 0, 0))
{
message_port_register_in(pmt::mp("in"));
set_msg_handler(pmt::mp("in"), boost::bind(&message_sink_impl::process_message, this, _1));
set_msg_handler(pmt::mp("in"), boost::bind(&message_sink_impl::process_message, this, boost::placeholders::_1));
}
/*

View File

@ -50,7 +50,7 @@ clock_offset_control_impl::clock_offset_control_impl(float fc, float samp_rate,
{
message_port_register_in(pmt::mp("measurements"));
set_msg_handler(pmt::mp("measurements"), boost::bind(&clock_offset_control_impl::process_measurement, this, _1));
set_msg_handler(pmt::mp("measurements"), boost::bind(&clock_offset_control_impl::process_measurement, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("ctrl"));
set_fc(fc);

View File

@ -71,7 +71,7 @@ namespace gr {
}
message_port_register_in(pmt::mp("CX"));
set_msg_handler(pmt::mp("CX"), boost::bind(&cx_channel_hopper_impl::assemble_bursts, this, _1));
set_msg_handler(pmt::mp("CX"), boost::bind(&cx_channel_hopper_impl::assemble_bursts, this, boost::placeholders::_1));
message_port_register_out(pmt::mp("bursts"));
}

View File

@ -62,7 +62,7 @@ namespace gr {
message_port_register_in(pmt::intern("bursts_in"));
message_port_register_out(pmt::intern("bursts_out"));
set_msg_handler(pmt::intern("bursts_in"), boost::bind(&gen_test_ab_impl::generate_ab, this, _1));
set_msg_handler(pmt::intern("bursts_in"), boost::bind(&gen_test_ab_impl::generate_ab, this, boost::placeholders::_1));
}
/*

View File

@ -55,7 +55,7 @@ namespace gr {
message_port_register_out(pmt::mp("bursts_out"));
set_msg_handler(pmt::mp("bursts_in"),
boost::bind(&preprocess_tx_burst_impl::process_burst, this, _1));
boost::bind(&preprocess_tx_burst_impl::process_burst, this, boost::placeholders::_1));
}
/*

View File

@ -76,10 +76,10 @@ namespace gr {
// Bind message handlers
set_msg_handler(pmt::mp("fn_time"),
boost::bind(&txtime_setter_impl::process_fn_time_reference,
this, _1));
this, boost::placeholders::_1));
set_msg_handler(pmt::mp("bursts_in"),
boost::bind(&txtime_setter_impl::process_txtime_of_burst,
this, _1));
this, boost::placeholders::_1));
}
/*

View File

@ -76,7 +76,7 @@ namespace gr {
// Bind a port handler
set_msg_handler(pmt::mp("bursts"),
boost::bind(&trx_burst_if_impl::handle_dl_burst, this, _1));
boost::bind(&trx_burst_if_impl::handle_dl_burst, this, boost::placeholders::_1));
// Prepare port numbers
std::string data_src_port = boost::lexical_cast<std::string> (base_port + 2);
@ -88,7 +88,7 @@ namespace gr {
// Bind DATA interface handler
d_data_sock->udp_rx_handler = boost::bind(
&trx_burst_if_impl::handle_ul_burst, this, _1, _2);
&trx_burst_if_impl::handle_ul_burst, this, boost::placeholders::_1, boost::placeholders::_2);
}
/*