mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fixes for old GCC
This commit is contained in:
parent
6de4d28ab1
commit
c27622a738
@ -42,7 +42,7 @@ channel_msg_receiver_cc::channel_msg_receiver_cc(std::shared_ptr<ChannelFsm> cha
|
|||||||
this->message_port_register_in(pmt::mp("events"));
|
this->message_port_register_in(pmt::mp("events"));
|
||||||
this->set_msg_handler(pmt::mp("events"),
|
this->set_msg_handler(pmt::mp("events"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto&& PH1) { msg_handler_events(PH1); });
|
[this](pmt::pmt_t&& PH1) { msg_handler_events(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&channel_msg_receiver_cc::msg_handler_events, this, _1));
|
boost::bind(&channel_msg_receiver_cc::msg_handler_events, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,7 +74,7 @@ hybrid_observables_gs::hybrid_observables_gs(const Obs_Conf &conf_) : gr::block(
|
|||||||
this->message_port_register_in(pmt::mp("pvt_to_observables"));
|
this->message_port_register_in(pmt::mp("pvt_to_observables"));
|
||||||
this->set_msg_handler(pmt::mp("pvt_to_observables"),
|
this->set_msg_handler(pmt::mp("pvt_to_observables"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_pvt_to_observables(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_pvt_to_observables(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&hybrid_observables_gs::msg_handler_pvt_to_observables, this, _1));
|
boost::bind(&hybrid_observables_gs::msg_handler_pvt_to_observables, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -135,12 +135,8 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address,
|
|||||||
|
|
||||||
// 6. Start reading
|
// 6. Start reading
|
||||||
boost::asio::async_read(socket_, boost::asio::buffer(data_),
|
boost::asio::async_read(socket_, boost::asio::buffer(data_),
|
||||||
#if HAS_GENERIC_LAMBDA
|
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2)); // NOLINT(modernize-avoid-bind)
|
||||||
[this](auto &&PH1, auto &&PH2) { handle_read(PH1, PH2); });
|
|
||||||
#else
|
|
||||||
boost::bind(&rtl_tcp_signal_source_c::handle_read,
|
|
||||||
this, _1, _2));
|
|
||||||
#endif
|
|
||||||
boost::thread(
|
boost::thread(
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[ObjectPtr = &io_context_] { ObjectPtr->run(); });
|
[ObjectPtr = &io_context_] { ObjectPtr->run(); });
|
||||||
@ -320,11 +316,7 @@ void rtl_tcp_signal_source_c::handle_read(const boost::system::error_code &ec,
|
|||||||
// Read some more
|
// Read some more
|
||||||
boost::asio::async_read(socket_,
|
boost::asio::async_read(socket_,
|
||||||
boost::asio::buffer(data_),
|
boost::asio::buffer(data_),
|
||||||
#if HAS_GENERIC_LAMBDA
|
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2)); // NOLINT(modernize-avoid-bind)
|
||||||
[this](auto &&PH1, auto &&PH2) { handle_read(PH1, PH2); });
|
|
||||||
#else
|
|
||||||
boost::bind(&rtl_tcp_signal_source_c::handle_read, this, _1, _2));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ dll_pll_veml_tracking::dll_pll_veml_tracking(const Dll_Pll_Conf &conf_) : gr::bl
|
|||||||
this->set_msg_handler(
|
this->set_msg_handler(
|
||||||
pmt::mp("telemetry_to_trk"),
|
pmt::mp("telemetry_to_trk"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_telemetry_to_trk(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_telemetry_to_trk(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&dll_pll_veml_tracking::msg_handler_telemetry_to_trk, this, _1));
|
boost::bind(&dll_pll_veml_tracking::msg_handler_telemetry_to_trk, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -90,7 +90,7 @@ dll_pll_veml_tracking_fpga::dll_pll_veml_tracking_fpga(const Dll_Pll_Conf_Fpga &
|
|||||||
this->message_port_register_in(pmt::mp("telemetry_to_trk"));
|
this->message_port_register_in(pmt::mp("telemetry_to_trk"));
|
||||||
this->set_msg_handler(pmt::mp("telemetry_to_trk"),
|
this->set_msg_handler(pmt::mp("telemetry_to_trk"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_telemetry_to_trk(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_telemetry_to_trk(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&dll_pll_veml_tracking_fpga::msg_handler_telemetry_to_trk, this, _1));
|
boost::bind(&dll_pll_veml_tracking_fpga::msg_handler_telemetry_to_trk, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -113,7 +113,7 @@ glonass_l1_ca_dll_pll_c_aid_tracking_cc::glonass_l1_ca_dll_pll_c_aid_tracking_cc
|
|||||||
|
|
||||||
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_preamble_index(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));
|
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -110,7 +110,7 @@ glonass_l1_ca_dll_pll_c_aid_tracking_sc::glonass_l1_ca_dll_pll_c_aid_tracking_sc
|
|||||||
this->message_port_register_in(pmt::mp("preamble_timestamp_s"));
|
this->message_port_register_in(pmt::mp("preamble_timestamp_s"));
|
||||||
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_preamble_index(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));
|
boost::bind(&glonass_l1_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -105,7 +105,7 @@ glonass_l2_ca_dll_pll_c_aid_tracking_cc::glonass_l2_ca_dll_pll_c_aid_tracking_cc
|
|||||||
|
|
||||||
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_preamble_index(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));
|
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_cc::msg_handler_preamble_index, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -103,7 +103,7 @@ glonass_l2_ca_dll_pll_c_aid_tracking_sc::glonass_l2_ca_dll_pll_c_aid_tracking_sc
|
|||||||
this->message_port_register_in(pmt::mp("preamble_timestamp_s"));
|
this->message_port_register_in(pmt::mp("preamble_timestamp_s"));
|
||||||
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
this->set_msg_handler(pmt::mp("preamble_timestamp_s"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto &&PH1) { msg_handler_preamble_index(PH1); });
|
[this](pmt::pmt_t &&PH1) { msg_handler_preamble_index(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));
|
boost::bind(&glonass_l2_ca_dll_pll_c_aid_tracking_sc::msg_handler_preamble_index, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -39,7 +39,7 @@ channel_status_msg_receiver::channel_status_msg_receiver() : gr::block("channel_
|
|||||||
this->message_port_register_in(pmt::mp("status"));
|
this->message_port_register_in(pmt::mp("status"));
|
||||||
this->set_msg_handler(pmt::mp("status"),
|
this->set_msg_handler(pmt::mp("status"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto&& PH1) { msg_handler_events(PH1); });
|
[this](pmt::pmt_t&& PH1) { msg_handler_events(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&channel_status_msg_receiver::msg_handler_events, this, _1));
|
boost::bind(&channel_status_msg_receiver::msg_handler_events, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
@ -56,7 +56,7 @@ Acquisition_msg_rx::Acquisition_msg_rx() : gr::block("Acquisition_msg_rx", gr::i
|
|||||||
this->message_port_register_in(pmt::mp("events"));
|
this->message_port_register_in(pmt::mp("events"));
|
||||||
this->set_msg_handler(pmt::mp("events"),
|
this->set_msg_handler(pmt::mp("events"),
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
[this](auto&& PH1) { msg_handler_events(PH1); });
|
[this](pmt::pmt_t&& PH1) { msg_handler_events(PH1); });
|
||||||
#else
|
#else
|
||||||
boost::bind(&Acquisition_msg_rx::msg_handler_events, this, _1));
|
boost::bind(&Acquisition_msg_rx::msg_handler_events, this, _1));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user